/* =============================================
   WOC Digital Space — Global Styles
   Colors: #0000eb | #000000 | #ffffff | #ebebeb | #ff0800
   Fonts: Montserrat + Roboto
   ============================================= */

:root {
  --primary:    #0000eb;
  --black:      #000000;
  --white:      #ffffff;
  --light:      #ebebeb;
  --danger:     #ff0800;
  --teal:       #00c9b1;
  --orange:     #f5a623;
  --purple:     #7c3aed;
  --gray:       #6b7280;
  --dark:       #1f2937;
  --font-main:  'Montserrat', sans-serif;
  --font-body:  'Roboto', sans-serif;
  --radius:     8px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --transition: all 0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #f5f6fa;
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); font-weight: 700; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: #0000cc; }

/* ---- Site Header ---- */
.site-header {
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-brand { display: flex; align-items: center; gap: 0.5rem; }
.header-logo  { height: 32px; object-fit: contain; }
.header-title { font-family: var(--font-main); font-size: 1.1rem; font-weight: 800; letter-spacing: 0.5px; }

.header-org {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-org-avatar {
  width: 32px; height: 32px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
}
.header-org-name { font-family: var(--font-main); font-size: 0.9rem; font-weight: 600; }

.plan-badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-badge { background: var(--danger) !important; border-color: var(--danger) !important; }

/* ---- Navigation ---- */
.site-nav {
  background: var(--black);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 57px;
  z-index: 999;
}
.admin-nav { background: #111827; }

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 0.7rem 0.9rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-item.active .nav-link { color: var(--white); background: rgba(255,255,255,0.1); }

/* Dropdown */
.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 200px;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
.nav-submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.nav-submenu li a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.has-dropdown:hover .nav-submenu { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

/* Notifications */
.notif-wrapper { position: relative; }
.notif-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  position: relative;
  border-radius: var(--radius);
  transition: var(--transition);
}
.notif-btn:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--danger);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.6rem;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 300px;
  max-height: 380px;
  overflow-y: auto;
  z-index: 1001;
}
.notif-dropdown.open { display: block; }
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
}
.notif-mark-read { font-size: 0.75rem; color: var(--primary); }
.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--light);
  transition: var(--transition);
}
.notif-item:hover { background: #f9f9f9; }
.notif-item strong { display: block; font-size: 0.8rem; color: var(--black); margin-bottom: 2px; }
.notif-item p { font-size: 0.78rem; color: var(--gray); margin: 0; }
.notif-item small { font-size: 0.7rem; color: #aaa; }
.notif-empty { padding: 1rem; text-align: center; color: var(--gray); font-size: 0.85rem; }

.settings-btn {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.settings-btn:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* ---- Page Header Bar ---- */
.page-header-bar {
  background: var(--black);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
}
.page-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
}
.page-date {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* ---- Main Content ---- */
.main-content { flex: 1; padding: 0; }

/* ---- Page Intro ---- */
.welcome-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.welcome-sub { color: var(--gray); font-size: 0.88rem; }

/* ---- WOC Cards ---- */
.woc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transition: var(--transition);
}
.woc-card-header { margin-bottom: 1rem; }
.woc-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.1rem; }
.woc-card-sub { color: var(--gray); font-size: 0.82rem; margin: 0; }

/* ---- Stat Cards ---- */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-icon-blue   { background: #e8e8ff; color: var(--primary); }
.stat-icon-teal   { background: #e0faf6; color: #00a896; }
.stat-icon-orange { background: #fff4e0; color: #d97706; }
.stat-icon-purple { background: #f0e8ff; color: var(--purple); }
.stat-icon-gray   { background: var(--light); color: var(--gray); }
.stat-icon-red    { background: #ffe8e8; color: var(--danger); }

.stat-body { display: flex; flex-direction: column; }
.stat-label { font-size: 0.75rem; color: var(--gray); font-family: var(--font-main); font-weight: 500; }
.stat-value { font-size: 1.4rem; font-weight: 800; font-family: var(--font-main); line-height: 1.2; }
.stat-sub   { font-size: 0.72rem; color: var(--gray); }

/* ---- Progress Bars ---- */
.woc-progress { height: 8px; background: var(--light); border-radius: 4px; overflow: hidden; }
.woc-progress .progress-bar { background: var(--teal); border-radius: 4px; transition: width 0.5s ease; }
.progress-label { font-size: 0.8rem; font-weight: 700; color: var(--black); }
.progress-wrap { display: flex; align-items: center; gap: 0.75rem; }
.mini-progress { height: 6px; width: 80px; display: inline-flex; }

.progress-teal    .progress-bar { background: var(--teal); }
.progress-blue    .progress-bar { background: var(--primary); }
.progress-orange  .progress-bar { background: var(--orange); }
.progress-green   .progress-bar { background: #22c55e; }
.progress-red     .progress-bar { background: var(--danger); }

/* ---- Timeline ---- */
.timeline-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0.5rem 0;
  gap: 0;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  border: 2px solid var(--light);
  background: var(--white);
  color: var(--gray);
}
.timeline-step.done .timeline-dot   { background: var(--teal); border-color: var(--teal); color: var(--white); }
.timeline-step.current .timeline-dot{ background: var(--primary); border-color: var(--primary); color: var(--white); }
.timeline-line {
  flex: 1;
  height: 2px;
  background: var(--light);
  min-width: 20px;
  margin-bottom: 1.2rem;
}
.timeline-line.done { background: var(--teal); }
.timeline-label { font-size: 0.7rem; font-family: var(--font-main); font-weight: 600; white-space: nowrap; color: var(--gray); }
.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label { color: var(--black); }

/* ---- Badges ---- */
.badge-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-blue  { background: var(--primary); color: var(--white); }
.badge-teal  { background: var(--teal); color: var(--white); }
.badge-gray  { background: var(--light); color: var(--gray); }

/* ---- Status Chips ---- */
.status-chip {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-main);
  white-space: nowrap;
}
.status-approved, .status-done, .status-completed { background: #d1fae5; color: #065f46; }
.status-pending, .status-waiting, .status-waiting_client { background: #fef3c7; color: #92400e; }
.status-needed, .status-open, .status-in_review { background: #fee2e2; color: #991b1b; }
.status-ready, .status-working { background: #dbeafe; color: #1e40af; }
.status-uploaded, .status-answered { background: #e0e7ff; color: #3730a3; }
.status-resolved, .status-closed { background: var(--light); color: var(--gray); }
.status-danger { background: var(--danger); color: var(--white); }
.status-high { background: #fee2e2; color: #991b1b; }

/* ---- Buttons ---- */
.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.btn-primary-custom:hover { background: #0000cc; color: var(--white); }

.quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.quick-btn-teal   { background: var(--teal); color: var(--white); }
.quick-btn-teal:hover { background: #00a896; color: var(--white); }
.quick-btn-orange { background: var(--orange); color: var(--white); }
.quick-btn-orange:hover { background: #d97706; color: var(--white); }
.quick-btn-blue   { background: var(--primary); color: var(--white); }
.quick-btn-blue:hover { background: #0000cc; color: var(--white); }
.quick-btn-dark   { background: var(--dark); color: var(--white); }
.quick-btn-dark:hover { background: #111; color: var(--white); }
.quick-btn-black  { background: var(--black); color: var(--white); }
.quick-btn-black:hover { background: #333; color: var(--white); }
.quick-btn-gray   { background: var(--light); color: var(--gray); }
.quick-btn-gray:hover { background: #d1d5db; color: var(--black); }
.quick-btn-red    { background: var(--danger); color: var(--white); }
.quick-btn-red:hover { background: #cc0000; color: var(--white); }
.btn-sm-custom { padding: 0.3rem 0.75rem; font-size: 0.73rem; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.7rem; }

.btn-link-custom {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  transition: var(--transition);
}
.btn-link-custom:hover { color: #0000cc; text-decoration: underline; }

/* ---- Quick Actions Grid ---- */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.admin-actions-grid { grid-template-columns: repeat(3, 1fr); }

/* ---- Tables ---- */
.woc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.woc-table th {
  background: var(--light);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #d1d5db;
}
.woc-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--light);
  vertical-align: middle;
  font-family: var(--font-body);
}
.woc-table tr:hover td { background: #fafafa; }
.woc-table tr:last-child td { border-bottom: none; }

.permissions-table th { text-align: center; }
.permissions-table th:first-child { text-align: left; }
.permissions-table td:first-child { text-align: left; }

/* ---- Detail Fields ---- */
.detail-field { margin-bottom: 0.75rem; }
.detail-label {
  display: block;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}
.detail-value {
  background: var(--light);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--black);
}

/* ---- Form Controls Override ---- */
.form-control, .form-select {
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,0,234,0.1);
  outline: none;
}
.form-label {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* ---- Notification Preferences ---- */
.notif-pref-list { display: flex; flex-direction: column; gap: 0.75rem; }
.notif-pref-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--light); }
.notif-pref-item:last-child { border-bottom: none; }

/* ---- Filter Tabs ---- */
.filter-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: var(--white);
  color: var(--gray);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--light);
  transition: var(--transition);
}
.filter-tab:hover, .filter-tab.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- Log Stream ---- */
.log-stream { display: flex; flex-direction: column; gap: 0.5rem; max-height: 300px; overflow-y: auto; }
.log-item { display: flex; gap: 0.75rem; font-size: 0.82rem; padding: 0.4rem 0; border-bottom: 1px solid var(--light); }
.log-time { color: var(--primary); font-weight: 600; white-space: nowrap; font-family: var(--font-main); font-size: 0.75rem; }
.log-user { font-weight: 600; white-space: nowrap; }
.log-msg  { color: var(--gray); flex: 1; }

/* ---- Checklist ---- */
.checklist { list-style: none; padding: 0; }
.checklist-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px solid var(--light); }
.check-icon { color: var(--teal); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }

/* ---- Approval Items ---- */
.approval-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0; border-bottom: 1px solid var(--light); }
.approval-icon { color: var(--teal); font-size: 1.1rem; margin-top: 3px; }
.approval-body { flex: 1; }

/* ---- Footer ---- */
.site-footer-bar {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-family: var(--font-main);
  margin-top: auto;
}

/* ---- Alerts ---- */
.alert { border-radius: var(--radius); font-size: 0.875rem; }

/* ---- Next Actions ---- */
.next-actions-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.action-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.action-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.action-done .action-icon  { background: #d1fae5; color: #065f46; }
.action-pending .action-icon { background: #e0e7ff; color: #3730a3; }
.action-msg .action-icon   { background: var(--light); color: var(--gray); }
.action-body strong { display: block; font-size: 0.88rem; font-weight: 700; }
.action-body span   { font-size: 0.8rem; color: var(--gray); }

/* ---- Updates List ---- */
.updates-list { list-style: none; padding: 0; }
.update-item  { display: flex; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--light); }
.update-date  { background: var(--teal); color: var(--white); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; height: fit-content; }
.update-text  { font-size: 0.83rem; color: var(--black); }
.update-tag   {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.update-tag-recent_progress { background: var(--teal); color: var(--white); }
.update-tag-next_action     { background: var(--primary); color: var(--white); }
.update-tag-client_visible  { background: var(--orange); color: var(--white); }
.update-tag-general         { background: var(--light); color: var(--gray); }

/* ---- Access / Type Chips ---- */
.access-chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-main);
}
.access-chip.free     { background: #d1fae5; color: #065f46; }
.access-chip.standard { background: #dbeafe; color: #1e40af; }
.access-chip.premium  { background: #f0e8ff; color: #5b21b6; }
.access-chip.shield   { background: #fee2e2; color: #991b1b; }
.access-chip.care_plan{ background: #fef3c7; color: #92400e; }
.type-chip { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 20px; font-size: 0.7rem; background: var(--light); color: var(--gray); font-weight: 600; }
.access-tag { font-size: 0.78rem; color: var(--primary); font-weight: 600; }

/* ---- Profile ---- */
.profile-hero       { border-left: 4px solid var(--primary); }
.profile-avatar-initials {
  width: 60px; height: 60px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 800;
}
.profile-avatar-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.profile-org-name   { font-size: 1.2rem; font-weight: 800; }

/* ---- SLA List ---- */
.sla-list { list-style: none; padding: 0; }
.sla-item { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--light); align-items: flex-start; }
.sla-icon { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* ---- Conversation ---- */
.conversation-box { display: flex; flex-direction: column; gap: 0.75rem; max-height: 350px; overflow-y: auto; padding: 0.5rem 0; }
.conv-bubble { max-width: 80%; padding: 0.75rem 1rem; border-radius: var(--radius); }
.conv-bubble strong { display: block; font-size: 0.75rem; margin-bottom: 0.25rem; }
.conv-bubble p { margin: 0; font-size: 0.85rem; }
.conv-bubble small { font-size: 0.7rem; color: rgba(0,0,0,0.5); }
.conv-client { background: var(--primary); color: var(--white); align-self: flex-end; }
.conv-client strong, .conv-client p, .conv-client small { color: rgba(255,255,255,0.9); }
.conv-team   { background: var(--teal); color: var(--white); align-self: flex-start; }
.conv-team strong, .conv-team p, .conv-team small { color: rgba(255,255,255,0.9); }

/* ---- Form section title ---- */
.form-section-title {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary);
}

/* ---- Role Selector ---- */
.role-selector-list { list-style: none; padding: 0; }
.role-selector-item {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  color: var(--black);
  font-size: 0.85rem;
  transition: var(--transition);
  margin-bottom: 0.25rem;
  border: 1px solid transparent;
}
.role-selector-item:hover { background: var(--light); }
.role-selector-item.active { background: var(--primary); color: var(--white); }

/* ---- Plan Cards ---- */
.plan-card {
  border: 2px solid var(--light);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--white);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan-card-featured { background: var(--primary); color: var(--white); border-color: var(--primary); }
.plan-card-active   { border-color: var(--teal) !important; }
.plan-card-header   { margin-bottom: 1rem; }
.plan-name  { font-size: 0.9rem; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.plan-price { margin-bottom: 0.5rem; }
.price-amount { font-size: 1.8rem; font-weight: 800; font-family: var(--font-main); }
.price-cycle  { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; margin-top: -0.2rem; }
.plan-desc { font-size: 0.8rem; opacity: 0.8; margin-top: 0.4rem; }
.plan-features { list-style: none; padding: 0; flex: 1; font-size: 0.82rem; }
.plan-features li { padding: 0.3rem 0; display: flex; align-items: flex-start; gap: 0.5rem; }
.plan-card-featured .plan-features li { color: rgba(255,255,255,0.9); }
.plan-cta { margin-top: 1rem; }
.plan-card-featured .quick-btn-orange { background: #fff; color: var(--primary); }
.plan-card-featured .quick-btn-teal   { background: rgba(255,255,255,0.2); color: var(--white); border: 1px solid rgba(255,255,255,0.5); }

/* ---- Plan Preview ---- */
.plan-preview-card {
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--white);
}
.plan-preview-card.plan-inactive { opacity: 0.5; }
.plan-preview-card.plan-featured { border-color: var(--primary); }
.plan-price-preview { font-size: 1.2rem; font-weight: 800; font-family: var(--font-main); color: var(--primary); margin: 0.4rem 0; }
.plan-features-preview { list-style: none; padding: 0; font-size: 0.78rem; color: var(--gray); }
.plan-features-preview li { padding: 0.15rem 0; }

/* ---- Auth Settings ---- */
.auth-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}
.auth-setting-info { display: flex; align-items: center; gap: 0.75rem; }
.auth-setting-icon {
  width: 38px; height: 38px;
  background: var(--light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.google-icon { background: #fce8e6; color: #ea4335; }

/* ---- Team Update ---- */
.team-update-item { padding: 0.6rem 0; border-bottom: 1px solid var(--light); }
.team-update-item:last-child { border-bottom: none; }

/* ---- Project Meta ---- */
.project-meta { font-size: 0.82rem; color: var(--gray); margin: 0; }
.project-hero-title { font-size: 1.4rem; font-weight: 800; }
.project-progress-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }

/* ---- Color Inputs ---- */
.color-input { height: 38px; padding: 2px; max-width: 50px; cursor: pointer; }

/* ---- Misc ---- */
.cursor-pointer { cursor: pointer; }
.otp-input { font-size: 1.5rem; letter-spacing: 0.5rem; font-family: var(--font-main); font-weight: 700; }
.pipeline-row .progress { height: 10px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-header { padding: 0.6rem 1rem; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    z-index: 999;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .nav-menu.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link  { padding: 0.6rem 1.2rem; }
  .nav-submenu { position: static; box-shadow: none; background: rgba(0,0,0,0.3); }
  .has-dropdown:hover .nav-submenu { display: none; }
  .has-dropdown.open .nav-submenu  { display: block; }
  .site-nav { position: relative; }
  .quick-actions-grid { grid-template-columns: 1fr 1fr; }
  .admin-actions-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1.1rem; }
  .plan-card { margin-bottom: 1rem; }
  .timeline-detailed .timeline-label { font-size: 0.6rem; }
  .notif-dropdown { right: auto; left: 0; min-width: 260px; }
  .page-date { display: none; }
  .woc-card { padding: 1rem; }
}

@media (max-width: 480px) {
  .quick-actions-grid  { grid-template-columns: 1fr; }
  .header-org-name     { display: none; }
  .plan-badge          { display: none; }
  .main-content        { padding: 0; }
}
