/* ==========================================================================
   منصة إدارة رعايات حفل اليوم الوطني الإماراتي - نادي الإمارات الرياضي الثقافي
   Emirates Cultural & Sports Club (Founded 1969) - Official Brand Stylesheet
   Colors: Emirates Emerald (#007A3D), Deep Forest (#004D25), Falcon Gold (#B5945B), UAE Red (#CE1126)
   ========================================================================== */

:root {
  --ec-green: #007A3D;
  --ec-green-dark: #004D25;
  --ec-green-deeper: #003318;
  --ec-green-light: #E6F4ED;
  --ec-gold: #B5945B;
  --ec-gold-light: #F7F2E7;
  --ec-gold-dark: #8C6D36;
  --uae-red: #CE1126;
  --bg-page: #F4F7F5;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 77, 37, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 77, 37, 0.14);
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Cairo', 'Tajawal', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Emirates Club Striped Header Banner */
.ec-hero-pattern {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 77, 37, 0.35) 0px,
      rgba(0, 77, 37, 0.35) 28px,
      rgba(0, 122, 61, 0.35) 28px,
      rgba(0, 122, 61, 0.35) 56px
    ),
    linear-gradient(135deg, #00381B 0%, #006834 55%, #004D25 100%);
  border-bottom: 4px solid var(--ec-gold);
}

.ec-gold-border {
  border-color: var(--ec-gold);
}

.ec-gold-gradient {
  background: linear-gradient(135deg, #C8A668 0%, #9E7C40 100%);
}

.ec-green-gradient {
  background: linear-gradient(135deg, #008442 0%, #005227 100%);
}

/* Cards & Surfaces */
.ec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ec-card:hover {
  box-shadow: var(--shadow-md);
}

/* Full-Viewport Table Without Horizontal Scrollbar */
.sponsors-full-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.sponsors-full-table th,
.sponsors-full-table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
  vertical-align: middle;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.status-not-contacted {
  background-color: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.status-proposal-sent {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.status-negotiation {
  background-color: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.status-verbal {
  background-color: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.status-confirmed {
  background-color: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.status-declined {
  background-color: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

/* Table Inputs - Full-Fit Compact Styling */
.table-select, .table-input {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  padding: 4px 6px;
  font-size: 0.78rem;
  font-family: inherit;
  background-color: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.table-select:focus, .table-input:focus {
  outline: none;
  border-color: var(--ec-green);
  box-shadow: 0 0 0 2px rgba(0, 122, 61, 0.15);
}

/* Navigation Tabs */
.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-tab-btn.active {
  background: var(--ec-green);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 122, 61, 0.25);
}

.nav-tab-btn:not(.active) {
  background: #FFFFFF;
  color: #334155;
  border-color: #E2E8F0;
}

.nav-tab-btn:not(.active):hover {
  border-color: var(--ec-gold);
  color: var(--ec-green-dark);
}

.logo-glow {
  filter: drop-shadow(0 4px 12px rgba(181, 148, 91, 0.45));
}

/* Responsive fallback on small mobile phones: stack cards cleanly */
@media (max-width: 900px) {
  .sponsors-full-table thead {
    display: none;
  }
  .sponsors-full-table,
  .sponsors-full-table tbody,
  .sponsors-full-table tr,
  .sponsors-full-table td {
    display: block;
    width: 100% !important;
  }
  .sponsors-full-table tr {
    margin-bottom: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 8px;
    background: #FFFFFF;
  }
}

/* Print Executive Report Styles (@media print) */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .ec-card {
    box-shadow: none !important;
    border: 1px solid #CBD5E1 !important;
    break-inside: avoid;
  }
  .print-table th, .print-table td {
    border: 1px solid #94A3B8 !important;
    padding: 6px 8px !important;
    font-size: 9.5pt !important;
  }
}
