/* VIP Customer Styles - Modern & Mobile-First Design */
:root {
  --vip-primary: #2c3e50;
  --vip-secondary: #3498db;
  --vip-accent: #e74c3c;
  --vip-text-primary: #2c3e50;
  --vip-text-secondary: #7f8c8d;
  --vip-background: #f8fafc;
  --vip-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --vip-border-radius: 16px;
  --vip-spacing-xs: 0.5rem;
  --vip-spacing-sm: 0.75rem;
  --vip-spacing-md: 1.25rem;
  --vip-spacing-lg: 2rem;
  --vip-transition: all 0.3s ease;
}

/* Base Wrapper */
.vip-wrapper {
  background-color: var(--vip-background);
  min-height: 100vh;
  padding: 0;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container Override for Mobile */
.vip-wrapper .container {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card Container */
.vip-customer {
  background: #ffffff;
  border-radius: 0;
  box-shadow: var(--vip-card-shadow);
  margin: 10px 0;
  overflow: hidden;
  transition: var(--vip-transition);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100%;
}

/* VIP Badge Styling */
.vip-customer .vip-badge {
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

.vip-customer .vip-badge img {
  display: block;
  max-width: 120px;
  height: auto;
  margin: 0 auto;
}

/* Card Header */
.vip-customer .panel-heading {
  background: linear-gradient(135deg, var(--vip-primary) 0%, var(--vip-secondary) 100%);
  color: #ffffff;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}

.vip-customer .panel-heading span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.period-date {
  font-size: 0.85rem;
  opacity: 0.9;
  font-weight: normal;
}

.customer-level {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  margin: 5px auto;
}

/* Card Body */
.vip-customer .panel-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Table Styles - Mobile First */
.vip-customer table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  margin: 0;
}

.vip-customer table thead {
  display: table-header-group;
  background: rgba(44, 62, 80, 0.03);
}

.vip-customer table thead td {
  padding: var(--vip-spacing-sm);
  font-weight: 600;
  color: var(--vip-text-primary);
  text-align: center;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.vip-customer table tbody tr {
  display: table-row;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vip-customer table tbody td {
  padding: var(--vip-spacing-sm);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.vip-customer table tbody td[data-label]::before {
  content: attr(data-label);
  font-weight: 600;
  color: var(--vip-text-secondary);
  display: block;
  margin-bottom: 4px;
}

/* VIP Parameters */
.vip-params {
  background: #ffffff;
  border-radius: 0;
  padding: 15px;
  margin: 0;
  width: 100%;
  text-align: center;
}

.vip-params .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.vip-params .row:last-child {
  border-bottom: none;
}

.vip-params .col-sm-3 {
  color: var(--vip-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.vip-params .col-sm-7 {
  color: var(--vip-text-primary);
  font-weight: 500;
  text-align: center;
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 5px;
}

.status-active {
  background-color: #2ecc71;
}

/* Loading States */
.vip-customer.loading {
  position: relative;
  overflow: hidden;
}

.vip-customer.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .vip-wrapper {
    padding: var(--vip-spacing-md);
  }

  .vip-wrapper .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
  }

  .vip-customer {
    border-radius: var(--vip-border-radius);
    margin: var(--vip-spacing-md) 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .vip-customer .panel-heading {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: var(--vip-spacing-md) var(--vip-spacing-lg);
  }

  .vip-customer .panel-body {
    padding: var(--vip-spacing-lg);
  }

  .vip-params {
    border-radius: 12px;
    margin: 10px auto;
    max-width: 800px;
  }

  .vip-customer table tbody td[data-label]::before {
    display: none;
  }

  .vip-params .row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .vip-params .col-sm-3 {
    flex: 0 0 30%;
    font-size: 0.9rem;
    text-align: right;
    padding-right: 20px;
  }

  .vip-params .col-sm-7 {
    flex: 0 0 70%;
    text-align: left;
  }

  .vip-customer .vip-badge img {
    max-width: 150px;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .vip-wrapper {
    padding: var(--vip-spacing-lg);
  }

  .vip-customer {
    margin: var(--vip-spacing-lg) auto;
    max-width: 1200px;
  }

  .vip-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  }

  .vip-customer table {
    font-size: 1rem;
  }

  .text-right {
    text-align: right;
  }

  .text-center {
    text-align: center;
  }

  .vip-customer .vip-badge img {
    max-width: 180px;
  }
}

/* Print Styles */
@media print {
  .vip-wrapper {
    background: none;
    padding: 0;
  }

  .vip-customer {
    box-shadow: none;
    border: 1px solid #dee2e6;
    break-inside: avoid;
  }

  .vip-customer .panel-heading {
    background: #f8f9fa !important;
    color: #000 !important;
    border-bottom: 2px solid #dee2e6;
  }

  .vip-params {
    border: 1px solid #dee2e6;
  }

  .status-indicator {
    display: none;
  }
}