/* assets/css/style.css — Ugnayan Original Navy & Gold Palette + Anastasia Golovko Bento Layout */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --cca-green: #0a1931;
  --cca-green-mid: #15305b;
  --cca-green-lite: #e8f0fe;
  --cca-orange: #f8b400;
  --ug-bg: #f4f6f9;
  --ug-surface-soft: #eaeff6;
  --ug-border: #dce4f0;
  --ug-card-border: #e2e8f0;
  --rail-w: 76px;
  --rail-gap: 18px;
  --right-panel-w: 310px;
  --drawer-w: 315px;
  --nav-h: 60px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--ug-bg);
  color: #0f172a;
  margin: 0;
  overflow-x: hidden;
}

/* ── MOBILE TOP NAVBAR (< 992px) ─────────────── */
.cca-navbar {
  background: var(--cca-green) !important;
  height: var(--nav-h);
  left: 0;
  width: 100%;
  z-index: 1035;
}
.cca-seal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cca-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--cca-green);
  flex-shrink: 0;
}
.cca-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cca-green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.cca-navbar .cca-rail-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── FLOATING LEFT PILL SIDEBAR (Anastasia Golovko Style) ── */
.cca-rail {
  position: fixed;
  top: var(--rail-gap);
  bottom: var(--rail-gap);
  left: var(--rail-gap);
  width: var(--rail-w);
  background: var(--ug-surface-soft);
  border: 1px solid var(--ug-border);
  border-radius: 38px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  user-select: none;
  box-shadow: 0 8px 28px rgba(10, 25, 49, 0.04);
}
.cca-rail-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.cca-rail-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cca-rail-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--cca-green);
  color: var(--cca-orange);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 25, 49, 0.18);
  transition: transform 0.18s ease;
}
.cca-rail-brand:hover .cca-rail-brand-mark {
  transform: scale(1.05);
}
.cca-rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.cca-rail-nav::-webkit-scrollbar {
  display: none;
}
.cca-rail-circle-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--cca-green);
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 8px rgba(10, 25, 49, 0.04);
  flex-shrink: 0;
}
.cca-rail-circle-btn i {
  font-size: 17px;
  line-height: 1;
}
.cca-rail-circle-btn:hover {
  transform: translateY(-2px);
  background: var(--cca-green-lite);
  color: var(--cca-green);
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px rgba(10, 25, 49, 0.09);
}
.cca-rail-circle-btn.active {
  background: var(--cca-green);
  color: #ffffff;
  border-color: var(--cca-green);
  box-shadow: 0 8px 18px rgba(10, 25, 49, 0.24);
}
.cca-rail-dot-accent {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cca-orange);
  border: 1.5px solid #ffffff;
}
.cca-rail-badge {
  position: absolute;
  top: -3px;
  right: -4px;
  background: var(--cca-orange);
  color: var(--cca-green);
  font-size: 9.5px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--ug-surface-soft);
}
.cca-rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cca-rail-user-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cca-green), var(--cca-green-mid));
  color: var(--cca-orange);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(10, 25, 49, 0.14);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cca-rail-user-circle:hover {
  transform: translateY(-1px);
}
.cca-rail-user-circle.active {
  border-color: var(--cca-orange);
  box-shadow: 0 0 0 3px rgba(248, 180, 0, 0.32);
}
.cca-rail-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* ── SLIDE-OVER FULL DRAWER ──────────────────── */
.cca-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 49, 0.42);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
body.drawer-open .cca-drawer-backdrop {
  opacity: 1;
  visibility: visible;
}
.cca-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--drawer-w);
  max-width: 86vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1060;
  box-shadow: 12px 0 36px rgba(10, 25, 49, 0.22);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0 28px 28px 0;
}
body.drawer-open .cca-drawer {
  transform: translateX(0);
}
.cca-drawer-header {
  padding: 22px 20px 14px;
}
.cca-drawer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cca-drawer-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cca-green);
  color: var(--cca-orange);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cca-drawer-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.cca-drawer-user-info {
  min-width: 0;
}
.cca-drawer-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--cca-green);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cca-drawer-handle {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cca-drawer-card {
  margin: 0 18px 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: var(--ug-surface-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.cca-drawer-card-top {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cca-drawer-pill-btn {
  background: #ffffff;
  color: var(--cca-green);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #dce4f0;
}
.cca-drawer-card-sub {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}
.cca-drawer-menu {
  display: flex;
  flex-direction: column;
  padding: 4px 12px 20px;
  gap: 3px;
}
.cca-drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.cca-drawer-link i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: #475569;
  flex-shrink: 0;
}
.cca-drawer-link:hover {
  background: #f1f5f9;
  color: var(--cca-green);
}
.cca-drawer-link.active {
  background: var(--cca-green);
  color: #ffffff;
  font-weight: 700;
}
.cca-drawer-link.active i {
  color: var(--cca-orange);
}
.cca-drawer-badge {
  background: var(--cca-orange);
  color: var(--cca-green);
  font-size: 11px;
  font-weight: 800;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── 3-ZONE WORKSPACE LAYOUT ─────────────────── */
.cca-workspace {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-left: calc(var(--rail-w) + (var(--rail-gap) * 2));
  padding: var(--rail-gap) var(--rail-gap) 36px 8px;
  min-height: 100vh;
}
.cca-main {
  flex: 1;
  min-width: 0;
  padding: 6px 4px 24px;
}

/* ── HORIZONTAL CAPSULE FILTER / MODULE PILLS (Anastasia Golovko Top Pills) ── */
.ug-capsule-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.ug-capsule-bar::-webkit-scrollbar {
  display: none;
}
.ug-capsule-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: var(--ug-surface-soft);
  border: 1px solid var(--ug-border);
  color: var(--cca-green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.ug-capsule-pill:hover {
  background: #e1e8f2;
  color: var(--cca-green);
  transform: translateY(-1px);
}
.ug-capsule-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--cca-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(10, 25, 49, 0.06);
  flex-shrink: 0;
}
.ug-capsule-pill.active {
  background: var(--cca-green);
  border-color: var(--cca-green);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(10, 25, 49, 0.18);
}
.ug-capsule-pill.active .ug-capsule-icon {
  background: #ffffff;
  color: var(--cca-green);
}
.ug-capsule-badge {
  background: var(--cca-orange);
  color: var(--cca-green);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ── RIGHT FLOATING PROFILE & ACTIVITY PANEL (Anastasia Golovko Right Card) ── */
.cca-right-panel {
  width: var(--right-panel-w);
  flex-shrink: 0;
  background: var(--ug-surface-soft);
  border: 1px solid var(--ug-border);
  border-radius: 32px;
  padding: 20px;
  position: sticky;
  top: var(--rail-gap);
  max-height: calc(100vh - (var(--rail-gap) * 2));
  overflow-y: auto;
  scrollbar-width: none;
}
.cca-right-panel::-webkit-scrollbar {
  display: none;
}
.ug-rp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ug-rp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--cca-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ug-rp-icon-btn:hover {
  background: #ffffff;
}
.ug-rp-profile {
  text-align: center;
  margin-bottom: 16px;
}
.ug-rp-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cca-green), var(--cca-green-mid));
  color: var(--cca-orange);
  font-size: 23px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 20px rgba(10, 25, 49, 0.14);
}
.ug-rp-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
}
.ug-rp-name {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--cca-green);
  line-height: 1.25;
}
.ug-rp-role {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}
.ug-rp-capsule-card {
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(10, 25, 49, 0.03);
  transition: transform 0.15s ease;
}
.ug-rp-capsule-card:hover {
  transform: translateY(-1px);
}
.ug-rp-capsule-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cca-green-lite);
  color: var(--cca-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.ug-mini-avatars {
  display: flex;
  align-items: center;
}
.ug-mini-avatars span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 8.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  margin-left: -6px;
}
.ug-mini-avatars span:first-child {
  margin-left: 0;
}

/* Activity Card inside Right Panel */
.ug-rp-activity-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(10, 25, 49, 0.03);
}
.ug-rp-year-pill {
  background: var(--ug-surface-soft);
  color: var(--cca-green);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.ug-rp-good-pill {
  background: #fdf2d0;
  color: var(--cca-green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.ug-rp-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding-top: 6px;
}
.ug-rp-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 3px;
  border-radius: 12px;
}
.ug-rp-bar-col.active {
  border: 1.5px solid var(--cca-green);
  background: #f8fafc;
}
.ug-rp-bar-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
}
.ug-rp-bar-stack span {
  display: block;
  width: 100%;
  border-radius: 6px;
}
.ug-rp-bar-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
}
.ug-rp-bar-col.active .ug-rp-bar-lbl {
  background: var(--cca-green);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 999px;
}

/* Pastel Course/Quick Cards inside Right Panel */
.ug-rp-course-card {
  display: block;
  border-radius: 22px;
  padding: 15px 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  border: 1px solid rgba(10, 25, 49, 0.06);
}
.ug-rp-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(10, 25, 49, 0.08);
}
.ug-rp-course-card.pastel-blue {
  background: #e3eefd;
}
.ug-rp-course-card.pastel-gold {
  background: #fdf2d0;
}
.ug-rp-course-card.pastel-purple {
  background: #ede9fe;
}
.ug-rp-course-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--cca-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.ug-rp-rating-pill {
  background: #ffffff;
  color: var(--cca-green);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.ug-rp-course-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--cca-green);
  line-height: 1.3;
}
.ug-mini-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--cca-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* ── PAGE HEADER ─────────────────────────────── */
.page-title {
  font-size: 27px;
  font-weight: 800;
  color: var(--cca-green);
  letter-spacing: -0.4px;
  margin-bottom: 2px;
}
.breadcrumb {
  margin-bottom: 8px;
}
.breadcrumb-item,
.breadcrumb-item a {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}
.breadcrumb-item.active {
  color: var(--cca-green);
}

/* ── BENTO STAT CARDS (Anastasia Golovko 2x2 Rounded Pastel Cards) ── */
.stat-card {
  border: 1px solid rgba(10, 25, 49, 0.06) !important;
  border-radius: 24px !important;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(10, 25, 49, 0.05) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 25, 49, 0.1) !important;
}
.stat-card .card-body {
  padding: 22px 24px;
}
.stat-card .stat-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0.95;
  transform: none;
}
.stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0 4px;
}
.stat-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

/* Bento Course-Style Cards for Dashboards */
.ug-bento-card {
  border-radius: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(10, 25, 49, 0.06);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ug-bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(10, 25, 49, 0.08);
}
.ug-bento-navy {
  background: #e3eefd;
  color: var(--cca-green);
}
.ug-bento-gold {
  background: #fdf2d0;
  color: var(--cca-green);
}
.ug-bento-indigo {
  background: #e8eaff;
  color: var(--cca-green);
}
.ug-bento-mint {
  background: #ddf7ec;
  color: var(--cca-green);
}
.ug-bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ug-bento-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cca-green);
}
.ug-bento-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--cca-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(10, 25, 49, 0.06);
}
.ug-bento-pill {
  background: #ffffff;
  color: var(--cca-green);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(10, 25, 49, 0.04);
}
.ug-bento-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--cca-green);
  line-height: 1.2;
  margin-bottom: 12px;
}
.ug-bento-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

/* ── GENERAL CARDS & TABLES ──────────────────── */
.card {
  border: 1px solid var(--ug-card-border);
  border-radius: 22px !important;
  box-shadow: 0 2px 12px rgba(10, 25, 49, 0.04);
  background: #ffffff;
}
.card-header {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--cca-green);
  border-radius: 22px 22px 0 0 !important;
}
.table {
  font-size: 13.5px;
}
.table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px;
}
.table tbody td {
  padding: 13px 18px;
  vertical-align: middle;
  color: #334155;
}
.table-hover tbody tr:hover {
  background: var(--cca-green-lite);
}

/* ── STATUS DOTS ─────────────────────────────── */
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-available {
  background: #10b981;
}
.status-in-class {
  background: #3b82f6;
}
.status-busy {
  background: #ef4444;
}
.status-on-break {
  background: #f59e0b;
}
.status-out {
  background: #94a3b8;
}
.status-on-leave {
  background: #a855f7;
}

/* ── STATUS PICKER CARDS ─────────────────────── */
.status-option {
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  background: #fff;
  width: 100%;
}
.status-option:hover,
.status-option.selected {
  border-color: var(--cca-green);
  background: var(--cca-green-lite);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 25, 49, 0.1);
}
.status-option .status-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.status-option .status-name {
  font-size: 15px;
  font-weight: 700;
}
.status-option .status-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}
.status-option .current-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* ── SCHEDULE GRID ───────────────────────────── */
.sched-grid {
  display: grid;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  min-width: 600px;
}
.sched-cols-6 {
  grid-template-columns: 72px repeat(6, 1fr);
}
.sched-cols-5 {
  grid-template-columns: 72px repeat(5, 1fr);
}
.sched-cell {
  padding: 8px 6px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}
.sched-cell:last-child {
  border-right: none;
}
.sched-header {
  background: #f8fafc;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}
.sched-time {
  background: #f8fafc;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.sched-event {
  background: var(--cca-green-lite);
  color: var(--cca-green);
  border-radius: 10px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 700;
  width: 100%;
  border-left: 3px solid var(--cca-green-mid);
}
.sched-today {
  background: #fffbeb;
}

/* ── ATTENDANCE CLOCK CARD ───────────────────── */
.att-clock-card {
  background: linear-gradient(
    135deg,
    var(--cca-green) 0%,
    var(--cca-green-mid) 100%
  );
  border-radius: 24px;
  color: #fff;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(10, 25, 49, 0.16);
}
.att-clock-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--cca-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--cca-green);
  margin: 0 auto 12px;
}
.att-clock-time {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 10px 0 4px;
}
.att-clock-date {
  font-size: 12.5px;
  opacity: 0.78;
  margin-bottom: 18px;
}

/* ── CHART BARS ──────────────────────────────── */
.chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.chart-label {
  font-size: 12px;
  color: #64748b;
  width: 90px;
  text-align: right;
  flex-shrink: 0;
}
.chart-track {
  flex: 1;
  height: 24px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
}
.chart-fill {
  height: 100%;
  background: var(--cca-green-mid);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  min-width: 32px;
  transition: width 0.5s ease;
}
.chart-fill.orange {
  background: var(--cca-orange);
}
.chart-fill.red {
  background: #ef4444;
}
.chart-fill.blue {
  background: #3b82f6;
}
.chart-fill.purple {
  background: #a855f7;
}
.chart-val {
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

/* ── AUTH PAGES (Correlated with Mobile App Light + Navy + Gold Card) ── */
.auth-bg {
  min-height: 100vh;
  background: var(--ug-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 36px 32px;
  width: 430px;
  max-width: 100%;
  border: 1px solid var(--ug-card-border);
  box-shadow: 0 16px 40px rgba(10, 25, 49, 0.08);
}
.auth-seal {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--cca-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--cca-orange);
  box-shadow: 0 6px 16px rgba(10, 25, 49, 0.16);
}

/* ── BUTTONS & INPUTS CONSISTENCY ────────────── */
.btn {
  border-radius: 12px;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 16px;
  transition: all 0.18s ease-in-out;
}
.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 10px;
}
.btn-cca {
  background: var(--cca-green);
  color: #fff;
  border: 1px solid var(--cca-green);
}
.btn-cca:hover,
.btn-cca:focus {
  background: var(--cca-green-mid);
  color: #fff;
  border-color: var(--cca-green-mid);
  box-shadow: 0 6px 14px rgba(10, 25, 49, 0.18);
}
.btn-cca-outline {
  background: transparent;
  color: var(--cca-green);
  border: 1px solid var(--cca-green);
}
.btn-cca-outline:hover,
.btn-cca-outline:focus {
  background: var(--cca-green-lite);
  color: var(--cca-green);
}
.btn-outline-secondary {
  border-color: #cbd5e1;
  color: #475569;
}
.btn-outline-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}
.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 10px 13px;
  font-size: 13.5px;
  transition: all 0.15s ease-in-out;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--cca-green-mid);
  box-shadow: 0 0 0 3px rgba(10, 25, 49, 0.12);
}
.input-group > .input-group-text {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
  border-radius: 12px 0 0 12px;
  padding: 10px 14px;
}
.input-group > .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group > .btn:last-child {
  border-radius: 0 12px 12px 0;
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #64748b;
}
.input-group > .btn:last-child:hover {
  background: #f1f5f9;
  color: var(--cca-green);
}
input.form-control:-webkit-autofill,
input.form-control:-webkit-autofill:hover,
input.form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
  -webkit-text-fill-color: #1e293b !important;
}
.form-field-required {
  border-left: 3.5px solid #0a1931 !important;
}

/* ── STATUS BADGES ───────────────────────────── */
.badge-approved,
.badge-ontime,
.badge-present {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-pending,
.badge-in-progress {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-rejected,
.badge-late,
.badge-absent {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── EMPTY STATE ─────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
}
.empty-state i {
  font-size: 44px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.45;
}
.empty-state p {
  font-size: 14px;
  margin: 0;
}

/* ── UTILITIES ───────────────────────────────── */
.text-cca {
  color: var(--cca-green) !important;
}
.bg-cca {
  background: var(--cca-green) !important;
}
.bg-cca-lite {
  background: var(--cca-green-lite) !important;
}
.text-purple {
  color: #7b1fa2 !important;
}
.bg-purple {
  background: #7b1fa2 !important;
  color: #fff !important;
}
.fw-600 {
  font-weight: 600;
}
.fw-700 {
  font-weight: 700;
}
.fw-800 {
  font-weight: 800;
}
.fs-11 {
  font-size: 11px;
}
.fs-12 {
  font-size: 12px;
}
.fs-13 {
  font-size: 13px;
}
.fs-14 {
  font-size: 14px;
}
.print-header {
  display: none;
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────── */
@media (max-width: 1279.98px) {
  .cca-right-panel {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .cca-rail {
    display: none;
  }
  .cca-workspace {
    margin-left: 0;
    padding: calc(var(--nav-h) + 16px) 16px 36px;
  }
}
