:root {
  --primary: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --surface: #ffffff;
  --surface-alt: #f8faf9;
  --surface-muted: #f1f5f9;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --surface: #111827;
  --surface-alt: #1f2937;
  --surface-muted: #111827;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #374151;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--surface-muted);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

body[data-theme="dark"] {
  background: #090b12;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.accessibility-bar {
  background: var(--primary-dark);
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.accessibility-bar .label {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.accessibility-bar button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.accessibility-bar button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.accessibility-bar button:active {
  transform: translateY(0px);
  background: rgba(255, 255, 255, 0.35);
}

.speech-indicator {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 1200;
  box-shadow: var(--shadow);
}

.speech-indicator.active {
  display: inline-flex;
}

#loginPage {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
}

.logo-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--surface-muted);
  color: var(--primary);
  font-size: 2rem;
}

.login-card h1 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 0.35rem;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.25s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
  transform: translateY(-1px);
}

/* ===== ENHANCED BUTTON STYLES ===== */
.btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.85rem 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

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

.btn:active {
  transform: translateY(0px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Primary Button */
.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.35);
}

.btn-primary:active {
  background: #145214;
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.25);
}

.btn-outline:active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Success Button */
.btn-success {
  background: #16a34a;
  color: white;
}

.btn-success:hover {
  background: #15803d;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
  transform: translateY(-2px);
}

.btn-success:active {
  background: #14532d;
}

/* Warning Button */
.btn-warning {
  background: #f59e0b;
  color: white;
}

.btn-warning:hover {
  background: #d97706;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.btn-warning:active {
  background: #b45309;
}

/* Danger Button */
.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
  transform: translateY(-2px);
}

.btn-danger:active {
  background: #991b1b;
}

/* Info Button */
.btn-info {
  background: #2563eb;
  color: white;
}

.btn-info:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.btn-info:active {
  background: #1e40af;
}

/* Small Button */
.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
}

/* Block Button */
.btn-block {
  width: 100%;
}

/* Disabled Button */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.alert {
  padding: 0.88rem 1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #16a34a;
}

.alert-info {
  background: #dbf4ff;
  color: #055160;
  border-left: 4px solid #2563eb;
}

#app {
  display: none;
  min-height: 100vh;
}

#app.active {
  display: flex;
  flex-direction: column;
}

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 56px;
  z-index: 900;
}

.navbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.navbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.navbar .user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: var(--surface-muted);
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font-size: 0.92rem;
}

.navbar .logout-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.navbar .logout-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.navbar .logout-btn:active {
  transform: translateY(0px);
}

.app-body {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
}

.sidebar {
  width: 245px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem;
  min-height: calc(100vh - 128px);
}

.sidebar .nav-section {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0.75rem 0 0.5rem;
}

.sidebar .nav-item,
.sidebar a.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  color: var(--text);
  margin-bottom: 0.35rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.sidebar .nav-item:hover,
.sidebar a.nav-item:hover {
  background: var(--surface-muted);
  transform: translateX(4px);
}

.sidebar .nav-item.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

.sidebar .nav-item.active:hover {
  background: var(--primary-dark);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.35);
}

.main-content {
  flex: 1;
  background: transparent;
  min-height: calc(100vh - 128px);
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.page-header h2 {
  font-size: 1.45rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

thead th,
tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

thead th {
  background: var(--surface-alt);
  color: var(--text-muted);
  font-weight: 700;
}

tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background: var(--surface-muted);
  transform: scale(1.002);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef9c3;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .app-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
  }

  .main-content {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .navbar,
  .card,
  .sidebar,
  .page-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn {
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
  }
  
  .btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  transform: rotate(90deg);
}

.close-modal:active {
  transform: rotate(90deg) scale(0.9);
}

.stat-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease;
}

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

.stat-card .num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-card .label {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.complaint-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  margin-bottom: 0.85rem;
  background: var(--surface);
  transition: all 0.25s ease;
}

.complaint-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.complaint-item .head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.complaint-item .meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.complaint-item .actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.complaint-item .actions .btn-success {
  background: #16a34a;
  color: white;
}

.complaint-item .actions .btn-success:hover {
  background: #15803d;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
}

.complaint-item .actions .btn-warning {
  background: #f59e0b;
  color: white;
}

.complaint-item .actions .btn-warning:hover {
  background: #d97706;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.complaint-item .actions .btn-danger {
  background: #dc2626;
  color: white;
}

.complaint-item .actions .btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
}

.file-drop {
  background: var(--surface-muted);
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-drop:hover {
  border-color: var(--primary);
  background: var(--surface-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.file-drop:active {
  transform: translateY(0px);
}

.file-drop i {
  font-size: 1.8rem;
  color: var(--text-muted);
}

.file-drop p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.text-small {
  font-size: 0.9rem;
}

.text-large {
  font-size: 1.15rem;
}

.text-xlarge {
  font-size: 1.4rem;
}

.spacing-compact * {
  margin-bottom: 0.35rem !important;
}

.spacing-relaxed * {
  margin-bottom: 0.9rem !important;
}

.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.6rem; }
.mb-2 { margin-bottom: 1rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.w-full { width: 100%; }

/* ===== EMAIL STYLES ===== */
.email-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.25s ease;
}

.email-item:hover {
  background: var(--surface-alt) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.email-item:active {
  transform: translateY(0px);
}

.email-item .badge {
  font-size: 0.7rem;
}

.email-tabs .btn {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  transition: all 0.25s ease;
}

.email-tabs .btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.email-tabs .btn-outline:hover {
  background: var(--surface-muted);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.email-tabs .btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.email-tabs .btn.active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* BROADCAST STYLES */
.broadcast-item {
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
}

.broadcast-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* DECLINE REASON STYLES */
.decline-reason {
  background: var(--surface-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid #dc2626;
}

.decline-reason strong {
  color: var(--text);
}

/* SIDEBAR LOGO STYLE */

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0.5rem 1rem;
  border-bottom: 1px solid var(--border, #eee);
  margin-bottom: 0.5rem;
}

.sidebar-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface, #fff);
  padding: 4px;
  border: 2px solid var(--primary, #1a1a2e);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.05);
}

.sidebar-header h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
  color: var(--text, #1a1a2e);
  text-align: center;
}

.sidebar-header .sidebar-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* NAVBAR LOGO STYLES */

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface, #fff);
  padding: 2px;
  border: 2px solid var(--primary, #1a1a2e);
}

/* RESPONSIVE ADJUSTMENTS */

@media (max-width: 768px) {
  .sidebar-logo {
    width: 48px;
    height: 48px;
  }
  
  .sidebar-header h2 {
    font-size: 0.85rem;
  }
  
  .nav-logo {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .sidebar-logo {
    width: 40px;
    height: 40px;
  }
  
  .sidebar-header h2 {
    font-size: 0.75rem;
  }
  
  .nav-logo {
    width: 24px;
    height: 24px;
  }
}

/* LOGIN PAGE LOGO STYLES */

.login-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
}

.login-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--surface, #fff);
  padding: 6px;
  border: 3px solid var(--primary, #1a1a2e);
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-logo-container h1 {
  font-size: 1.9rem;
  margin-bottom: 0.25rem;
  text-align: center;
  color: var(--text);
}

.login-logo-container .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

/* RESPONSIVE ADJUSTMENTS*/

@media (max-width: 480px) {
  .login-logo {
    width: 64px;
    height: 64px;
  }
  
  .login-logo-container h1 {
    font-size: 1.5rem;
  }
  
  .login-logo-container .subtitle {
    font-size: 0.85rem;
  }
}

/* ============= PROFILE SETTINGS STYLES ============= */

#profileForm .form-group input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--surface-muted);
}

#profileForm small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

#profileMessage {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  animation: slideIn 0.3s ease;
}

/* ============= RESPONSIVE ADJUSTMENTS ============= */

@media (max-width: 480px) {
  .login-logo {
    width: 64px;
    height: 64px;
  }
  
  .login-logo-container h1 {
    font-size: 1.5rem;
  }
  
  .login-logo-container .subtitle {
    font-size: 0.85rem;
  }
}

/* ============= PROFILE SETTINGS SIDEBAR STYLES ============= */

.profile-card {
  padding: 0;
  overflow: hidden;
}

.profile-container {
  display: flex;
  min-height: 450px;
}

/* Left Side - Image/Logo Section with Background Image */
.profile-image-section {
  flex: 0 0 50%;
  background-image: url('muranga-house.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  min-height: 450px;
}

/* Overlay for better text readability */
.profile-image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.profile-overlay-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.profile-logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border: 4px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.profile-image-section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-image-section p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 200px;
  margin-top: 0.5rem;
}

.profile-role-badge,
.profile-muni-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.profile-role-badge:hover,
.profile-muni-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Right Side - Form Section */
.profile-form-section {
  flex: 1;
  padding: 2rem 3rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 450px;
}

.profile-form-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  font-weight: 600;
}

.profile-form-section .form-group {
  margin-bottom: 1.2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.profile-form-section .form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.4rem;
}

.profile-form-section .form-group input {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  width: 100%;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all 0.3s ease;
}

.profile-form-section .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.profile-form-section .form-group input[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--surface-muted);
}

.profile-form-section .form-group small {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.profile-form-section #profileMessage {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============= UPDATED PROFILE BUTTON STYLES ============= */

.profile-form-section .btn-update-profile {
  max-width: 200px;
  margin: 0.5rem auto 0;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.25);
}

.profile-form-section .btn-update-profile:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
}

.profile-form-section .btn-update-profile:active {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(46, 125, 50, 0.2);
}

.profile-form-section .btn-update-profile i {
  font-size: 0.9rem;
}

/* ============= RESPONSIVE ADJUSTMENTS ============= */

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
  }
  
  .profile-image-section {
    flex: 0 0 auto;
    padding: 2rem 1.5rem;
    min-height: 250px;
  }
  
  .profile-logo {
    width: 80px;
    height: 80px;
  }
  
  .profile-image-section h3 {
    font-size: 1.1rem;
  }
  
  .profile-form-section {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .profile-form-section .form-group {
    max-width: 100%;
  }
  
  .profile-form-section #profileMessage {
    max-width: 100%;
  }
  
  .profile-form-section .btn-update-profile {
    max-width: 180px;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .profile-image-section {
    min-height: 200px;
  }
  
  .profile-logo {
    width: 64px;
    height: 64px;
  }
  
  .profile-image-section h3 {
    font-size: 0.95rem;
  }
  
  .profile-image-section p {
    font-size: 0.8rem;
  }
  
  .profile-form-section {
    padding: 1rem;
  }
  
  .profile-role-badge,
  .profile-muni-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .profile-form-section .btn-update-profile {
    max-width: 160px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}