/*
Theme Name: NurseAllia
Theme URI: https://alldifferz.com/
Author: AllDifferz
Author URI: https://alldifferz.com/
Description: NurseAllia – India's Premier Nursing Tutoring Marketplace. Specialized 1-on-1 tutoring for BSc Nursing, GNM, and NCLEX preparation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nurseallia
Tags: education, tutoring, nursing, marketplace, custom-menu, featured-images
*/

/* =============================================
   NURSEALLIA CUSTOM STYLES
   ============================================= */

/* Base */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --color-primary: #133aae;
  --color-teal: #D4AF37;
  --color-teal-light: #e6c84a;
  --color-coral: #D4AF37;
  --color-coral-accent: #D4AF37;
  --color-cream: #FDFBF7;
  --color-bg-light: #FDFBF7;
  --color-success: #078838;
  --font-display: 'Poppins', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-lexend: 'Lexend', sans-serif;
}

body {
  font-family: var(--font-body);
  color: #1e293b;
  background: var(--color-bg-light);
  margin: 0;
  padding: 0;
}

h1, h2, h3 { font-family: var(--font-display); }

a { color: var(--color-coral); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---- Utility ---- */
.nurseallia-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.bg-background-light { background: var(--color-bg-light) !important; }
.bg-cream-bg { background: var(--color-cream) !important; }
.bg-primary { background: var(--color-primary) !important; }
.bg-coral-accent { background: var(--color-coral) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-coral-accent { color: var(--color-coral) !important; }
.border-primary { border-color: var(--color-primary) !important; }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }
.btn-coral {
  background: var(--color-coral);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s;
}
.btn-coral:hover { transform: scale(1.04); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
}
.site-header .header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.site-logo .logo-icon {
  width: 40px; height: 40px;
  background: #0f766e;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem; font-family: var(--font-display); font-weight: 900;
}
.site-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  font-family: var(--font-display);
}
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-size: .875rem; font-weight: 500; color: #475569; transition: color .2s; }
.main-nav a:hover { color: var(--color-coral); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; }

/* ---- Dashboard Layout ---- */
.dashboard-wrapper { display: flex; min-height: 100vh; }
.dashboard-sidebar {
  width: 256px;
  background: white;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  z-index: 40;
  overflow-y: auto;
  transition: transform .3s ease, width .3s ease;
}
.dashboard-sidebar.dark-sidebar { background: var(--color-primary); color: white; }

/* Collapsed sidebar (desktop icon-only mode) */
.dashboard-sidebar.collapsed { width: 68px; }
.dashboard-sidebar.collapsed .sidebar-logo .logo-text-wrap,
.dashboard-sidebar.collapsed .sidebar-nav a span:not(.material-symbols-outlined),
.dashboard-sidebar.collapsed .sidebar-footer-text { display: none; }
.dashboard-sidebar.collapsed .sidebar-logo { justify-content: center; padding: 1.25rem .5rem; }
.dashboard-sidebar.collapsed .sidebar-nav a { justify-content: center; padding: .75rem; }

/* Sidebar toggle button */
.sidebar-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: .5rem; border: none;
  background: rgba(255,255,255,.12); color: white;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: rgba(255,255,255,.22); }
.dashboard-sidebar:not(.dark-sidebar) .sidebar-toggle-btn { background: #f1f5f9; color: var(--color-primary); }
.dashboard-sidebar:not(.dark-sidebar) .sidebar-toggle-btn:hover { background: #e2e8f0; }

/* Mobile hamburger inside topbar */
.topbar-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--color-primary); padding: .4rem; border-radius: .5rem;
}
.topbar-menu-btn:hover { background: #f1f5f9; }

.sidebar-logo { padding: 1.25rem 1rem; display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid rgba(0,0,0,.06); flex-shrink: 0; }
.dark-sidebar .sidebar-logo { border-bottom-color: rgba(255,255,255,.08); }
.sidebar-nav { flex: 1; padding: .75rem; display: flex; flex-direction: column; gap: .25rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: .75rem;
  color: #64748b; font-weight: 500; font-size: .9rem;
  transition: all .2s; text-decoration: none; white-space: nowrap; overflow: hidden;
}
.sidebar-nav a:hover { background: #f1f5f9; color: var(--color-primary); }
.sidebar-nav a.active { background: var(--color-primary); color: white; }
.dark-sidebar .sidebar-nav a { color: rgba(255,255,255,.65); }
.dark-sidebar .sidebar-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.dark-sidebar .sidebar-nav a.active { background: rgba(255,255,255,.18); color: white; }

.dashboard-main { flex: 1; margin-left: 256px; min-height: 100vh; transition: margin-left .3s ease; }
.dashboard-main.sidebar-collapsed { margin-left: 68px; }

.dashboard-topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
  padding: 0 1.5rem; height: 4.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.dashboard-content { padding: 1.5rem; }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 39;
}
.sidebar-overlay.visible { display: block; }

/* ---- Stat Cards ---- */
.stat-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; font-family: var(--font-lexend, var(--font-body)); }
.stat-card .stat-label { font-size: .85rem; color: #64748b; margin-top: .25rem; }

/* ---- Tutor Cards ---- */
.tutor-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: box-shadow .3s;
}
.tutor-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.tutor-card .tutor-avatar {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transition: filter .5s;
}
.tutor-card:hover .tutor-avatar { filter: grayscale(0); }
.tutor-card .tutor-info { padding: 1.5rem; }

/* ---- Forms ---- */
.na-form-group { margin-bottom: 1.25rem; }
.na-form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .375rem; color: var(--color-primary); }
.na-form-group input,
.na-form-group select,
.na-form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  background: white;
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.na-form-group input:focus,
.na-form-group select:focus,
.na-form-group textarea:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.na-input-icon { position: relative; }
.na-input-icon .input-icon {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: #94a3b8; font-size: 1.2rem;
}
.na-input-icon input { padding-left: 2.5rem; }

/* ---- Tables ---- */
.na-table { width: 100%; border-collapse: collapse; }
.na-table th {
  text-align: left; padding: .75rem 1rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.na-table td { padding: .875rem 1rem; border-bottom: 1px solid #f1f5f9; font-size: .875rem; }
.na-table tr:last-child td { border-bottom: none; }
.na-table tr:hover td { background: #f8fafc; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 700;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-pending { background: #fef3c7; color: #92400e; }

/* ---- Hero ---- */
.hero-section {
  background: var(--color-cream);
  padding: 5rem 1.5rem;
}
.hero-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 1024px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---- Find Tutor Filters ---- */
.filter-bar {
  background: white; padding: 1.5rem; border-radius: 1rem;
  border: 1px solid #e2e8f0; margin-bottom: 2rem;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end;
}
.filter-bar .filter-item { flex: 1; min-width: 150px; }

/* ---- Payment Box ---- */
.payment-option {
  border: 2px solid #e2e8f0; border-radius: .75rem; padding: 1rem;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: .75rem;
}
.payment-option:hover, .payment-option.selected { border-color: var(--color-coral); background: rgba(212,176,56,.05); }

/* ---- Zoom Badge ---- */
.zoom-link {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #2D8CFF; color: white;
  padding: .5rem 1rem; border-radius: .5rem;
  font-size: .8rem; font-weight: 700; text-decoration: none;
}
.zoom-link:hover { background: #1a73e8; color: white; }

/* ---- Alert / Notice ---- */
.na-notice {
  padding: 1rem 1.25rem; border-radius: .75rem;
  display: flex; gap: .75rem; align-items: flex-start;
  margin-bottom: 1rem;
}
.na-notice-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.na-notice-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.na-notice-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.na-notice-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-mobile-toggle { display: block; }

  /* Mobile sidebar: off-canvas */
  .dashboard-sidebar {
    transform: translateX(-100%);
    width: 256px !important; /* always full width when open on mobile */
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  .dashboard-sidebar.mobile-open { transform: translateX(0); }
  /* Hide collapse state on mobile — sidebar is either hidden or fully open */
  .dashboard-sidebar.collapsed { width: 256px !important; }
  .dashboard-sidebar.collapsed .sidebar-logo .logo-text-wrap,
  .dashboard-sidebar.collapsed .sidebar-nav a span:not(.material-symbols-outlined),
  .dashboard-sidebar.collapsed .sidebar-footer-text { display: unset; }
  .dashboard-sidebar.collapsed .sidebar-logo { justify-content: flex-start; padding: 1.25rem 1rem; }
  .dashboard-sidebar.collapsed .sidebar-nav a { justify-content: flex-start; padding: .75rem 1rem; }

  .dashboard-main { margin-left: 0 !important; }
  .topbar-menu-btn { display: flex; }

  /* Topbar compact on mobile */
  .dashboard-topbar { padding: 0 1rem; height: 4rem; }
  .dashboard-topbar h2 { font-size: 1.1rem !important; }
  .dashboard-topbar p { display: none; }

  /* Content padding */
  .dashboard-content { padding: 1rem; }

  /* Stat cards — 2 col on mobile */
  .stat-card .stat-value { font-size: 1.4rem; }
  .stat-card { padding: 1rem; }

  /* Tables — horizontal scroll */
  .na-table th, .na-table td { padding: .6rem .75rem; font-size: .8rem; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }

  /* Wizard overlay full-screen mobile */
  #profileWizardOverlay { padding: 0; align-items: flex-start; }
  #profileWizardOverlay > div { border-radius: 0; min-height: 100vh; }
}

@media (max-width: 480px) {
  /* Single col stat cards on very small screens */
  .stat-grid-2 { grid-template-columns: 1fr !important; }
  .dashboard-topbar .topbar-actions .btn-coral span { display: none; }
}

/* ---- WP alignment classes ---- */
.alignleft  { float: left;  margin-right: 1.5rem; }
.alignright { float: right; margin-left:  1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption  { max-width: 100%; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute; overflow: hidden; height: 1px; width: 1px;
}
