/* ===== GOVERNMENT PORTAL THEME ===== */
/* Dynamic Theme Configuration - Easily Customizable */

:root {
  /* New Sprig-inspired Color Scheme */
  --color-light-green: #F3FFEE;   /* 40% - Light background */
  --color-warm-beige: #DBCB9A;    /* 15% - Warm accents */
  --color-brown: #89746A;         /* 25% - Content sections */
  --color-dark-blue: #3A5475;     /* 20% - Main elements */
  
  /* Primary Theme Colors */
  --primary-color: var(--color-dark-blue);        /* Dark blue for main elements */
  --primary-light: #4A6485;       /* Lighter blue for hover states */
  --primary-dark: #2A4465;        /* Darker blue for active states */
  
  /* Secondary Colors */
  --secondary-color: var(--color-brown);     /* Brown for accents */
  --secondary-light: #99847A;     /* Light brown for hover */
  --secondary-dark: #79645A;      /* Dark brown for active */
  
  /* Background Colors */
  --bg-main: var(--color-light-green);             /* Light green main background */
  --bg-sidebar: var(--color-dark-blue); /* Dark blue sidebar */
  --bg-card: #ffffff;             /* Card backgrounds */
  --bg-hover: rgba(255,255,255,0.1); /* Hover overlay */
  --bg-hero: var(--color-light-green); /* Hero section background */
  --bg-section-warm: var(--color-warm-beige); /* Warm section background */
  --bg-section-brown: var(--color-brown); /* Brown section background */
  
  /* Text Colors */
  --text-primary: #1f2937;        /* Primary text */
  --text-secondary: #6b7280;      /* Secondary text */
  --text-sidebar: #ffffff;        /* Sidebar text */
  --text-sidebar-inactive: rgba(255,255,255,0.7); /* Inactive sidebar text */
  --text-on-brown: #ffffff;       /* Text on brown background */
  
  /* Border Colors */
  --border-light: #e5e7eb;        /* Light borders */
  --border-medium: #d1d5db;       /* Medium borders */
  
  /* Status Colors */
  --success-color: #10b981;       /* Success/green */
  --warning-color: #f59e0b;       /* Warning/amber */
  --error-color: #ef4444;         /* Error/red */
  --info-color: var(--secondary-color); /* Info/blue */
  
  /* Layout Dimensions */
  --sidebar-width: 280px;         /* Sidebar width */
  --header-height: 70px;          /* Header height */
  --border-radius: 0.5rem;        /* Standard border radius */
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  
  /* Typography */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-arabic: 'Noto Naskh Arabic', serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

.rtl {
  direction: rtl;
  font-family: var(--font-family-arabic);
}

.rtl * {
  font-family: var(--font-family-arabic);
}

/* ===== LAYOUT STRUCTURE ===== */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: var(--text-sidebar);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* RTL Sidebar positioning */
.rtl .sidebar {
  left: auto;
  right: 0;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-sidebar);
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #8B5CF6, #A855F7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: var(--font-size-base);
}

.sidebar-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.sidebar-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-sidebar-inactive);
  margin-top: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== SIDEBAR USER INFO ===== */
.sidebar-user-info {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.sidebar-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-sidebar);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: var(--font-size-xs);
  color: var(--text-sidebar-inactive);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-xs);
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-nav {
  padding: 0;
}

.nav-item {
  list-style: none;
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-sidebar-inactive);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-sidebar);
}

.nav-link.active {
  background-color: var(--bg-hover);
  color: var(--text-sidebar);
  border-left-color: var(--secondary-color);
  font-weight: 500;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* RTL Main content positioning */
.rtl .main-content {
  margin-left: 0;
  margin-right: var(--sidebar-width);
}

/* ===== HEADER STYLES (Uvodo-inspired) ===== */
.main-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: 70px;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

.header-back-btn:hover {
  color: var(--primary-color);
}

.header-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.header-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-main);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  background: #8B5CF6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.header-user-name {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== USER INFO & AUTH ===== */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-main);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

/* ===== CONTENT AREA (Centered & RTL Compatible) ===== */
.content-area {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* Center all main content sections */
.admin-toolbar,
.section-header,
.feature-grid,
.data-table,
.attendees-card-grid,
.quick-access-grid,
.activity-timeline {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

/* ===== RTL SUPPORT ===== */
.rtl .content-area {
  direction: rtl;
}

.rtl .admin-toolbar {
  flex-direction: row-reverse;
}

.rtl .header-content {
  flex-direction: row-reverse;
}

.rtl .header-actions {
  flex-direction: row-reverse;
  gap: 1rem;
}

.rtl .nav-link {
  text-align: right;
  border-right: 3px solid transparent;
  border-left: none;
  flex-direction: row-reverse;
}

.rtl .nav-link.active {
  border-right-color: var(--secondary-color);
  border-left: none;
}

.rtl .sidebar-brand {
  flex-direction: row-reverse;
}

.rtl .table th,
.rtl .table td {
  text-align: right;
}

.rtl .modal-header {
  flex-direction: row-reverse;
}

.rtl .hero-cta-buttons {
  flex-direction: row-reverse;
}

.rtl .attendee-detail-item i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Additional RTL fixes */
.rtl .sidebar-header {
  direction: rtl;
}

.rtl .sidebar-title {
  text-align: right;
}

.rtl .sidebar-subtitle {
  text-align: right;
}

.rtl .sidebar-user-info {
  direction: rtl;
}

.rtl .sidebar-auth-buttons {
  flex-direction: column-reverse;
}

.rtl .sidebar-user-profile {
  flex-direction: row-reverse;
}

.rtl .user-details {
  text-align: right;
}

.rtl .nav-icon {
  margin-left: 0.75rem;
  margin-right: 0;
}

.rtl .hero-content {
  direction: rtl;
  text-align: right;
}

.rtl .hero-title {
  text-align: right;
}

.rtl .hero-subtitle {
  text-align: right;
}

.rtl .hero-stats {
  direction: rtl;
}

.rtl .stat-item {
  direction: rtl;
  text-align: right;
}

.rtl .section-header {
  direction: rtl;
  text-align: right;
}

.rtl .section-title {
  text-align: right;
}

.rtl .section-description {
  text-align: right;
}

.rtl .quick-access-grid {
  direction: rtl;
}

.rtl .quick-access-card {
  direction: rtl;
  text-align: right;
}

.rtl .card-title {
  text-align: right;
}

.rtl .card-description {
  text-align: right;
}

.rtl .card-arrow {
  transform: rotate(180deg);
}

.rtl .feature-card {
  direction: rtl;
  text-align: right;
}

.rtl .feature-header {
  flex-direction: row-reverse;
}

.rtl .feature-title {
  text-align: right;
}

.rtl .feature-description {
  text-align: right;
}

.rtl .attendees-card-grid {
  direction: rtl;
}

.rtl .attendee-card {
  direction: rtl;
  text-align: right;
}

.rtl .attendee-name {
  text-align: right;
}

.rtl .attendee-details {
  text-align: right;
}

.rtl .attendee-detail-item {
  flex-direction: row-reverse;
  text-align: right;
}

.rtl .form-group {
  direction: rtl;
  text-align: right;
}

.rtl .form-label {
  text-align: right;
}

.rtl .modal-content {
  direction: rtl;
  text-align: right;
}

.rtl .modal-title {
  text-align: right;
}

.rtl .btn {
  flex-direction: row-reverse;
}

.rtl .btn i {
  margin-left: 0.5rem;
  margin-right: 0;
}

/* RTL Mobile responsiveness */
@media (max-width: 768px) {
  .rtl .sidebar {
    transform: translateX(100%);
  }
  
  .rtl .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .rtl .main-content {
    margin-right: 0;
  }
}

/* ===== CARD COMPONENTS ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-xl);
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.feature-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-dark);
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-outline {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: white;
}

/* ===== ADMIN CONTROLS ===== */
.admin-only {
  display: none;
}

.admin-mode .admin-only {
  display: inline-flex;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

/* ===== TABLES ===== */
.data-table {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: var(--bg-main);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--border-light);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.table tbody tr:hover {
  background: var(--bg-main);
}

/* ===== MODALS (Styled) ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(58, 84, 117, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease-out;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  animation: slideIn 0.3s ease-out;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-dark-blue);
  margin: 0;
}

.close-modal {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: var(--color-brown);
  color: white;
  border-color: var(--color-brown);
}

/* ===== FORMS (Enhanced for Modals) ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 0.75rem;
  letter-spacing: 0.025em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
  background: var(--bg-main);
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-brown);
  box-shadow: 0 0 0 4px rgba(137, 116, 106, 0.1);
  background: white;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--color-brown);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Modal Form Specific Styling */
.modal .btn {
  padding: 1rem 2rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.modal .btn-primary {
  background: var(--color-dark-blue);
  border: none;
  color: white;
  transition: all 0.2s ease;
}

.modal .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 84, 117, 0.3);
}

/* Modal Specific Form Layout */
.modal .form-group:last-of-type {
  margin-bottom: 2rem;
}

.modal .space-y-4 > * + * {
  margin-top: 1.5rem;
}

/* File Input Styling */
input[type="file"] {
  padding: 0.75rem;
  border: 2px dashed var(--border-medium);
  border-radius: 12px;
  background: var(--bg-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="file"]:hover {
  border-color: var(--color-brown);
  background: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .content-area {
    padding: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .header-title {
    font-size: var(--font-size-2xl);
  }
}

/* ===== SPRIG-INSPIRED LANDING PAGE ===== */
.landing-hero {
  background: linear-gradient(135deg, var(--color-light-green) 0%, #E8F5DC 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23DBCB9A' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-brown), var(--color-dark-blue));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(58, 84, 117, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-brown);
  margin-bottom: 3rem;
  line-height: 1.4;
  font-weight: 400;
}

.hero-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-cta-primary {
  background: var(--color-dark-blue);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(58, 84, 117, 0.3);
}

.hero-cta-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(58, 84, 117, 0.4);
}

.hero-cta-secondary {
  background: transparent;
  color: var(--color-brown);
  padding: 1rem 2rem;
  border: 2px solid var(--color-brown);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  background: var(--color-brown);
  color: white;
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-brown);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* Section Layouts with Color Distribution */
.section-warm {
  background: var(--bg-section-warm);
  padding: 4rem 2rem;
}

.section-brown {
  background: var(--bg-section-brown);
  padding: 4rem 2rem;
  color: var(--text-on-brown);
}

.section-brown .section-title {
  color: white;
}

.section-brown .section-description {
  color: rgba(255, 255, 255, 0.9);
}

.quick-access-section {
  background: var(--bg-section-warm);
  padding: 4rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-brown);
  max-width: 600px;
  margin: 0 auto;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-access-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.quick-access-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brown), var(--color-dark-blue));
}

.quick-access-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.card-icon.meetings {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.card-icon.speakers {
  background: linear-gradient(135deg, #10B981, #059669);
}

.card-icon.documents {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.card-icon.voting {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--color-brown);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-arrow {
  color: var(--color-brown);
  font-size: 1.25rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.quick-access-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Recent Activity Section */
.recent-activity-section {
  background: var(--bg-section-brown);
  padding: 4rem 2rem;
  color: white;
}

.activity-timeline {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    max-width: 280px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .quick-access-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITY CLASSES ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--card-shadow); }

/* ===== CKEditor Integration ===== */
.ck-editor__editable {
  min-height: 150px;
}

.ck-editor__editable_inline {
  border: 1px solid var(--border-medium);
  border-radius: var(--border-radius);
}

/* ===== Theme Variants ===== */
/* Dark Theme Variant */
[data-theme="dark"] {
  --bg-main: #111827;
  --bg-card: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --border-light: #374151;
  --border-medium: #4b5563;
}

/* High Contrast Theme */
[data-theme="high-contrast"] {
  --primary-color: #000000;
  --secondary-color: #0066cc;
  --text-primary: #000000;
  --bg-card: #ffffff;
  --border-light: #000000;
}

/* Kurdistan Regional Government Theme */
[data-theme="krg"] {
  --primary-color: #d4af37;
  --primary-light: #ddbf4a;
  --secondary-color: #c41e3a;
  --secondary-light: #d6485e;
}

/* ===== ATTENDEES CARD GRID STYLES ===== */
.attendees-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    min-height: 200px;
    width: 100%;
    padding: 0.5rem;
}

/* For larger screens, enforce 6 columns max */
@media (min-width: 1920px) {
    .attendees-card-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* For desktop screens, try to fit 4-5 columns */
@media (min-width: 1200px) {
    .attendees-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* For tablet screens, 2-3 columns */
@media (max-width: 768px) {
    .attendees-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }
}

/* For mobile screens, single column */
@media (max-width: 480px) {
    .attendees-card-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.attendee-card {
    background: var(--bg-card, #ffffff);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light, #e5e7eb);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.attendee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.attendee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.attendee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.attendee-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.attendee-role {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.attendee-details {
    text-align: left;
}

.attendee-detail-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.attendee-detail-item i {
    width: 16px;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.attendee-detail-item:last-child {
    margin-bottom: 0;
}

/* Role-specific colors */
.attendee-role.delegate {
    background: var(--primary-color);
}

.attendee-role.observer {
    background: #10b981;
}

.attendee-role.media {
    background: #f59e0b;
}

.attendee-role.staff {
    background: #8b5cf6;
}

/* Visibility indicator */
.attendee-visibility {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.attendee-visibility.admin {
    background: #ef4444;
}

.attendee-visibility.attendee {
    background: #f59e0b;
}

.attendee-visibility.visitor {
    background: #10b981;
}

/* Empty state for attendees */
.attendees-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.attendees-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.attendees-empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.attendee-role-centered {
    text-align: center;
    margin-bottom: 0.75rem;
}
/* Modal Header Actions Styling */
.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.modal-header-actions .btn i {
    font-size: 0.875rem;
}

.modal-header-actions .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
}

.modal-header-actions .close-modal:hover {
    color: #374151;
}

/* Fullscreen modal adjustments */
.modal.fullscreen .modal-content {
    max-width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.modal.fullscreen .modal-body {
    height: calc(100vh - 60px) !important;
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 0.25rem;
  min-height: 60px;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.bottom-nav-item span {
  font-size: 0.625rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  opacity: 0.8;
}

.bottom-nav-item.active {
  color: var(--primary-color);
  background: rgba(58, 84, 117, 0.1);
}

.bottom-nav-item.active i {
  transform: translateY(-2px);
}

.bottom-nav-item.active span {
  opacity: 1;
  font-weight: 600;
}

.bottom-nav-item:hover {
  color: var(--primary-color);
  background: rgba(58, 84, 117, 0.05);
}

/* Mobile Menu Toggle Updates */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1001;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.mobile-menu-toggle i {
  font-size: 1.125rem;
}

/* ===== ENHANCED MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Hide sidebar on mobile, show bottom nav */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
    z-index: 1002;
  }
  
  .main-content {
    margin-left: 0;
    padding-bottom: 80px; /* Space for bottom navigation */
  }
  
  .content-area {
    padding: 1rem;
    padding-bottom: 1rem; /* Reduced bottom padding as main-content handles it */
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .header-title {
    font-size: var(--font-size-2xl);
  }
  
  /* Show mobile elements */
  .bottom-nav {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Adjust header for mobile */
  .main-header {
    padding: 0.75rem 1rem 0.75rem 4rem; /* More padding on left for menu toggle */
    position: relative;
  }
  
  .header-back-btn {
    margin-left: 0; /* Remove extra margin */
  }
  
  /* Hide certain header elements on mobile */
  .header-actions {
    display: none;
  }
  
  /* Mobile modal adjustments */
  .modal-content {
    width: 95%;
    max-width: 95%;
    margin: 1rem;
    max-height: 85vh;
  }
  
  /* Quick access cards mobile optimization */
  .quick-access-card {
    padding: 1.5rem;
    text-align: center;
  }
  
  /* Attendees grid mobile optimization */
  .attendees-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 0.25rem;
  }
  
  .attendee-card {
    padding: 1rem;
    min-height: 160px;
  }
  
  .attendee-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .attendee-name {
    font-size: 0.95rem;
  }
  
  .attendee-detail-item {
    font-size: 0.8rem;
  }
  
  /* Admin toolbar mobile */
  .admin-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    text-align: center;
  }
  
  .admin-toolbar > div:first-child {
    text-align: center;
  }
  
  /* Table responsive */
  .data-table {
    overflow-x: auto;
  }
  
  .table {
    min-width: 600px;
  }
  
  /* Forms in modals mobile */
  .modal .form-group {
    margin-bottom: 1.25rem;
  }
  
  .modal .btn {
    padding: 0.875rem 1.5rem;
    width: 100%;
  }

  /* Hero section mobile adjustments */
  .landing-hero {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    max-width: 280px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .quick-access-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .content-area {
    padding: 0.75rem;
  }
  
  .bottom-nav-item {
    padding: 0.375rem 0.125rem;
    min-height: 56px;
  }
  
  .bottom-nav-item i {
    font-size: 1.125rem;
  }
  
  .bottom-nav-item span {
    font-size: 0.575rem;
  }
  
  .attendees-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
  }
  
  .attendee-card {
    padding: 0.75rem;
    min-height: 140px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .main-header {
    padding: 0.5rem 1rem 0.5rem 3.5rem;
    height: 60px;
  }
  
  .header-back-btn {
    font-size: 0.825rem;
  }
  
  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    top: 0.75rem;
    left: 0.75rem;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .main-content {
    padding-bottom: 70px; /* Slightly less padding in landscape */
  }
  
  .bottom-nav {
    padding: 0.375rem 0 calc(0.375rem + env(safe-area-inset-bottom));
  }
  
  .bottom-nav-item {
    min-height: 50px;
    padding: 0.375rem 0.25rem;
  }
  
  .bottom-nav-item i {
    font-size: 1.125rem;
    margin-bottom: 0.125rem;
  }
  
  .bottom-nav-item span {
    font-size: 0.575rem;
  }
}

/* ===== CALENDAR-LIKE MEETING CARDS ===== */
.meetings-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.meetings-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.meetings-empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.meeting-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.meeting-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.meeting-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Meeting date status variants */
.meeting-date-today {
  border-color: #10b981;
}

.meeting-date-today::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.meeting-date-future {
  border-color: var(--primary-color);
}

.meeting-date-future::before {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.meeting-date-past {
  border-color: #6b7280;
  opacity: 0.8;
}

.meeting-date-past::before {
  background: linear-gradient(90deg, #6b7280, #4b5563);
}

.meeting-date-invalid {
  border-color: #ef4444;
}

.meeting-date-invalid::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.meeting-date-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.meeting-calendar-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.meeting-date-today .meeting-calendar-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.meeting-date-past .meeting-calendar-icon {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.meeting-date-invalid .meeting-calendar-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.meeting-date-info {
  flex: 1;
}

.meeting-date {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.meeting-time {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.meeting-content {
  margin-bottom: 1.5rem;
}

.meeting-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.meeting-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.meeting-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meeting-detail-item i {
  width: 16px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.meeting-agenda {
  background: var(--bg-main);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.meeting-agenda h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meeting-agenda p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.meeting-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.meeting-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.view-meeting-btn {
  background: var(--primary-color);
  color: white;
  border: none;
}

.view-meeting-btn:hover {
  background: var(--primary-dark);
}

.toggle-agenda-btn {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.toggle-agenda-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Mobile responsive adjustments for meeting cards */
@media (max-width: 768px) {
  .meeting-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .meeting-date-section {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .meeting-calendar-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .meeting-date {
    font-size: 1.125rem;
  }
  
  .meeting-time {
    font-size: 0.9rem;
  }
  
  .meeting-title {
    font-size: 1.25rem;
  }
  
  .meeting-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .meeting-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== SPEAKER CARD STYLES ===== */
.speakers-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.speakers-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.speakers-empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.speakers-loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.speakers-loading-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #8b5cf6;
  animation: spin 1s linear infinite;
}

.speakers-loading-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.speaker-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.speaker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #8b5cf6;
}

.speaker-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.speaker-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.speaker-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.speaker-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.speaker-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
  background: var(--success-color);
}

.speaker-status.admin {
  background: #ef4444;
}

.speaker-status.attendee {
  background: #f59e0b;
}

.speaker-status.visitor {
  background: #10b981;
}

.speaker-basic-info {
  flex: 1;
  min-width: 0;
}

.speaker-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.speaker-title {
  font-size: 1rem;
  color: #8b5cf6;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.speaker-organization {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.speaker-content {
  margin-bottom: 1.5rem;
}

.speaker-details {
  margin-bottom: 1rem;
}

.speaker-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.speaker-detail-item i {
  width: 16px;
  color: #8b5cf6;
  flex-shrink: 0;
}

.speaker-detail-item:last-child {
  margin-bottom: 0;
}

.speaker-bio {
  background: var(--bg-main);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #8b5cf6;
}

.speaker-bio h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.speaker-bio p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.speaker-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.speaker-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.view-speaker-btn {
  background: #8b5cf6;
  color: white;
  border: none;
}

.view-speaker-btn:hover {
  background: #7c3aed;
}

.toggle-bio-btn {
  background: transparent;
  color: #8b5cf6;
  border: 1px solid #8b5cf6;
}

.toggle-bio-btn:hover {
  background: #8b5cf6;
  color: white;
}

/* Mobile responsive adjustments for speaker cards */
@media (max-width: 768px) {
  .speaker-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .speaker-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .speaker-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .speaker-name {
    font-size: 1.25rem;
  }
  
  .speaker-title {
    font-size: 0.9rem;
  }
  
  .speaker-organization {
    font-size: 0.8rem;
  }
  
  .speaker-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .speaker-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .speaker-card {
    padding: 0.75rem;
  }
  
  .speaker-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .speaker-detail-item {
    font-size: 0.8rem;
  }
  
  .speaker-bio {
    padding: 0.75rem;
  }
  
  .speaker-bio h4 {
    font-size: 0.8rem;
  }
  
  .speaker-bio p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .meeting-card {
    padding: 0.75rem;
  }
  
  .meeting-detail-item {
    font-size: 0.8rem;
  }
  
  .meeting-agenda {
    padding: 0.75rem;
  }
  
  .meeting-agenda h4 {
    font-size: 0.8rem;
  }
  
  .meeting-agenda p {
    font-size: 0.8rem;
  }
}