/* ==========================================
   PRODUCTION ADDITIONS
   ========================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #0A2540;
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Flash message positions */
.flash-message {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 3rem 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.15);
  font-weight: 500;
  font-size: 0.95rem;
  max-width: 500px;
  width: calc(100% - 2rem);
  animation: flashSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes flashSlideIn {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.flash-success { background:#d1fae5; color:#065f46; border:1px solid #6ee7b7; }
.flash-error   { background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }
.flash-warning { background:#fef3c7; color:#92400e; border:1px solid #fcd34d; }
.flash-info    { background:#dbeafe; color:#1e40af; border:1px solid #93c5fd; }
.flash-close {
  position: absolute; right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; opacity: 0.6; color: inherit;
}
.flash-close:hover { opacity: 1; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

/* User dropdown open state (mobile) */
.user-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Form states */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}
.form-error {
  display: block;
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-weight: 500;
}
.form-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  background: #10B981;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.form-submit-btn:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}
.form-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.form-submit-btn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Password strength */
.password-strength { display:flex; gap:4px; margin-top:0.5rem; }
.password-strength-bar {
  flex:1; height:4px; background:#e5e7eb; border-radius:2px;
  transition: background 0.3s ease;
}
.password-strength-bar.weak   { background:#ef4444; }
.password-strength-bar.medium { background:#f59e0b; }
.password-strength-bar.strong { background:#10B981; }
.password-strength-text { font-size:0.8rem; margin-top:0.3rem; font-weight:500; }

/* Auth pages */
.auth-section {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
  background: linear-gradient(135deg, #F8F9FA 0%, #E6F4EA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-container {
  max-width: 1080px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 37, 64, 0.15);
}
.auth-side-panel {
  background: linear-gradient(135deg, #0A2540 0%, #15385d 100%);
  padding: 3.5rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-side-panel::before {
  content: '';
  position: absolute; top:-50%; right:-50%;
  width:200%; height:200%;
  background: radial-gradient(circle at center, rgba(16,185,129,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.auth-side-content { position: relative; z-index: 1; }
.auth-side-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
.auth-side-panel h2 { color:#fff; font-size:1.85rem; margin-bottom:1rem; line-height:1.2; }
.auth-side-panel p { color: rgba(255,255,255,0.8); line-height:1.7; margin-bottom:2rem; }
.auth-benefits { list-style:none; display:flex; flex-direction:column; gap:1rem; padding:0; }
.auth-benefits li { display:flex; gap:0.75rem; color:rgba(255,255,255,0.9); font-size:0.95rem; line-height:1.5; }
.auth-benefits svg { color:#10B981; flex-shrink:0; margin-top:2px; }
.auth-form-panel { padding: 3.5rem 2.5rem; display:flex; flex-direction:column; justify-content:center; }
.auth-header { text-align:center; margin-bottom:2rem; }
.auth-header h1 { font-size:1.85rem; color:#0A2540; margin-bottom:0.5rem; }
.auth-header p { color:#666; font-size:0.95rem; }
.auth-form .form-group { margin-bottom:1.15rem; }
.auth-form label { display:block; font-weight:600; font-size:0.85rem; color:#0A2540; margin-bottom:0.4rem; }
.auth-form input,
.auth-form select {
  width:100%; padding:0.85rem 1rem;
  border:1.5px solid #e2e8f0; border-radius:10px;
  font-family:inherit; font-size:0.95rem; background:#f8fafc;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.auth-form input:focus,
.auth-form select:focus {
  outline:none; border-color:#10B981; background:#fff;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
}
.auth-footer-text { text-align:center; margin-top:1.5rem; color:#666; font-size:0.9rem; }
.auth-footer-text a { color:#10B981; font-weight:600; text-decoration:none; }
.auth-footer-text a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .auth-container { grid-template-columns: 1fr; }
  .auth-side-panel, .auth-form-panel { padding: 2.5rem 2rem; }
}

/* Dashboard */
.dashboard-hero {
  background: linear-gradient(135deg, #0A2540 0%, #15385d 100%);
  border-radius: 24px;
  padding: 2.5rem;
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.dashboard-hero::before {
  content:''; position:absolute; top:-50%; right:-50%;
  width:200%; height:200%;
  background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 60%);
  pointer-events:none;
}
.dashboard-hero-content { position:relative; z-index:1; }
.dashboard-hero h1 { color:#fff; font-size:2.25rem; margin:0.5rem 0; letter-spacing:-0.5px; }
.dashboard-badge {
  display:inline-block;
  background: rgba(16,185,129,0.25);
  color: #10B981;
  padding:0.25rem 0.85rem;
  border-radius: 50px;
  font-weight:600;
  font-size: 0.85rem;
  text-transform: capitalize;
}
.dashboard-stats {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dashboard-stat {
  background:#fff;
  border-radius: 16px;
  padding: 1.5rem;
  border-left: 4px solid #10B981;
  box-shadow: 0 4px 16px rgba(10,37,64,0.05);
}
.dashboard-stat-value { font-size:2rem; font-weight:800; color:#0A2540; line-height:1; margin-bottom:0.35rem; }
.dashboard-stat-label { font-size:0.85rem; color:#666; text-transform:uppercase; letter-spacing:0.05em; font-weight:600; }

/* Admin */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10,37,64,0.05);
}
.admin-table th {
  background: #f1f5f9;
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #0A2540;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }
.badge {
  display:inline-block;
  padding:0.25rem 0.65rem;
  border-radius: 50px;
  font-size:0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-new          { background:#dbeafe; color:#1e40af; }
.badge-in_progress  { background:#fef3c7; color:#92400e; }
.badge-resolved     { background:#d1fae5; color:#065f46; }
.badge-spam         { background:#fee2e2; color:#991b1b; }
.badge-dental_student { background:#dbeafe; color:#1e40af; }
.badge-dentist        { background:#e0e7ff; color:#3730a3; }
.badge-applicant      { background:#fef3c7; color:#92400e; }
.badge-other          { background:#f1f5f9; color:#475569; }
.badge-verified       { background:#d1fae5; color:#065f46; }
.badge-unverified     { background:#fef3c7; color:#92400e; }
.admin-table-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10,37,64,0.05);
  margin-bottom: 2rem;
}
.admin-table-header {
  display:flex; justify-content:space-between; align-items:center;
  padding:1.25rem 1.5rem;
  border-bottom:1px solid #e2e8f0;
  background:#f8fafc;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-table-header h2 { font-size:1.15rem; color:#0A2540; margin:0; }
.table-scroll { overflow-x: auto; }
/* INBDE Page Styles */
.inbde-section-hero {
    padding: 8rem 0 5rem 0;
    background: linear-gradient(135deg, #051626 0%, #0A2540 100%);
    color: #F8F9FA;
    position: relative;
    overflow: hidden;
}
.inbde-hero-grid { display:grid; grid-template-columns:1.2fr 0.8fr; gap:3rem; align-items:center; }
.inbde-hero-content { text-align:left; }
.inbde-hero-content h1 { font-size:clamp(2.25rem,5vw,3.5rem); color:#fff; margin-bottom:1.5rem; line-height:1.15; }
.inbde-hero-content p { font-size:clamp(1rem,2vw,1.2rem); color:rgba(255,255,255,0.85); margin-bottom:2.5rem; line-height:1.7; }
.inbde-hero-image-wrap { position:relative; border-radius:24px; overflow:hidden; box-shadow:0 20px 40px rgba(0,0,0,0.3); border:4px solid rgba(255,255,255,0.1); aspect-ratio:16/10; }
.inbde-hero-image-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:992px) { .inbde-hero-grid { grid-template-columns:1fr; gap:2rem; text-align:center; } .inbde-hero-content { text-align:center; } }
.inbde-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
@media (max-width:768px) { .inbde-grid-2 { grid-template-columns:1fr; gap:2rem; } }
.inbde-image-card { border-radius:20px; overflow:hidden; box-shadow:var(--shadow-md); border:1px solid rgba(10,37,64,0.08); }
.inbde-image-card img { width:100%; height:auto; display:block; object-fit:cover; }
.inbde-table-wrapper { width:100%; overflow-x:auto; margin:1.75rem 0; border-radius:12px; box-shadow:var(--shadow-sm); border:1px solid rgba(10,37,64,0.08); background-color:var(--color-surface); }
.inbde-table { width:100%; border-collapse:collapse; text-align:left; font-size:0.95rem; }
.inbde-table th { background-color:var(--color-primary); color:var(--color-surface); padding:1rem 1.25rem; font-weight:600; }
.inbde-table td { padding:1rem 1.25rem; border-bottom:1px solid rgba(10,37,64,0.06); color:var(--color-text-main); }
.inbde-table tr:last-child td { border-bottom:none; }
.inbde-table tr:nth-child(even) { background-color:rgba(10,37,64,0.02); }
.warning-callout { background-color:#FFFBEB; border-left:4px solid #F59E0B; padding:1.5rem; border-radius:8px; margin:2rem 0; }
.warning-callout h4 { color:#92400E; margin-bottom:0.5rem; font-size:1.1rem; }
.warning-callout p { color:#78350F; font-size:0.95rem; margin:0; }
.timeline-steps { display:flex; flex-direction:column; gap:2rem; position:relative; margin:2rem 0; }
.timeline-steps::before { content:''; position:absolute; left:20px; top:0; bottom:0; width:2px; background-color:var(--color-light-green); z-index:0; }
.timeline-step { display:flex; gap:1.5rem; position:relative; z-index:1; }
.step-number { width:42px; height:42px; border-radius:50%; background-color:var(--color-secondary); color:var(--color-surface); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.1rem; flex-shrink:0; box-shadow:0 0 0 6px var(--color-light-green); }
.step-content { background-color:var(--color-surface); padding:1.5rem; border-radius:12px; box-shadow:var(--shadow-sm); border:1px solid rgba(10,37,64,0.05); flex-grow:1; }
.step-content h3 { margin-bottom:0.5rem; font-size:1.25rem; }

@media (max-width: 768px) {
  .admin-table { min-width: 700px; }
}