/* =============================================================
   WorkHub Portal — Complete Stylesheet
   Pure PHP · MariaDB · cPanel Hosting
============================================================= */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1f3c;
  background: #eef1f8;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Design Tokens ------------------------------------------ */
:root {
  --brand:        #1e3a5f;
  --brand-hover:  #2563a8;
  --brand-light:  #e8f0fb;
  --accent:       #e8a020;
  --accent-hover: #c8880a;
  --accent-light: #fff8ed;
  --green:        #059669;
  --red:          #dc2626;
  --orange:       #d97706;
  --purple:       #7c3aed;
  --surface:      #ffffff;
  --surface2:     #f8f9fc;
  --bg:           #eef1f8;
  --border:       #e2e6f0;
  --border-dark:  #c8cee0;
  --text:         #1a1f3c;
  --muted:        #6b7494;
  --light:        #9ba3c0;
  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --sidebar-w:    240px;
  --shadow:       0 1px 3px rgba(26,31,60,.06), 0 4px 14px rgba(26,31,60,.07);
  --shadow-lg:    0 8px 30px rgba(26,31,60,.14);
}

/* =============================================================
   AUTH PAGES  (login / register — no sidebar)
============================================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  display: flex;
  width: 100%;
  max-width: 860px;
  min-height: 520px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-card--wide { max-width: 960px; }

/* Left decorative panel */
.auth-left {
  width: 300px;
  background: var(--brand);
  padding: 52px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(232,160,32,.12);
  right: -80px; top: -80px;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(232,160,32,.07);
  left: -50px; bottom: -50px;
}
.auth-brand {  max-width: 120px;
  width: 100%;
  height: auto;}
.auth-logo  { display: block; font-family: 'DM Serif Display', serif; font-size: 32px; color: #fff; margin-bottom: 4px; }
.auth-tagline { font-size: 11px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: 1.3px; }
.auth-features { position: relative; z-index: 1; list-style: none; }
.auth-features li {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  padding: 7px 0 7px 20px;
  position: relative;
}
.auth-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Right form panel */
.auth-right {
  flex: 1;
  padding: 52px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-right h2 { font-size: 26px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.auth-subtitle  { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.auth-switch    { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-switch a  { color: var(--brand); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .14s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--brand-hover); }

/* Password strength */
.pw-strength-bar   { height: 3px; border-radius: 2px; margin-top: 6px; transition: width .35s, background .35s; width: 0; }
.pw-strength-label { font-size: 11px; margin-top: 3px; font-weight: 600; }

/* =============================================================
   APP SHELL
============================================================= */
.app-layout { display: flex; min-height: 100vh; }

/* --- Sidebar ----------------------------------------------- */
/* KEY FIX: height:100vh instead of min-height:100vh so the
   nav area can scroll independently inside a fixed height */
.sidebar {
  width: var(--sidebar-w);
  background: var(--brand);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  z-index: 300;
  overflow: hidden;
  transition: transform .25s ease;
}

.sidebar-logo {
  padding: 26px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  flex-shrink: 0;
}
.logo-text { display: block; font-family: 'DM Serif Display', serif; font-size: 24px; color: #fff; letter-spacing: -.3px; }
.logo-role { display: block; font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1.3px; margin-top: 3px; }

/* KEY FIX: min-height:0 allows flex child to shrink so
   overflow-y:auto actually works inside a flex container */
.sidebar-nav {
  padding: 12px 10px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }

.nav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(255,255,255,.3);
  padding: 14px 12px 5px;
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 500;
  transition: background .13s, color .13s;
  margin-bottom: 2px;
}
.nav-link:hover  { background: rgba(255,255,255,.09); color: #fff; }
.nav-link.active { background: var(--accent); color: #fff; }
.nav-link svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* KEY FIX: flex-shrink:0 keeps the footer always visible
   at the bottom even when nav has many items */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.09);
  flex-shrink: 0;
}
.user-info  { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.user-name  { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.2; }
.user-role  { font-size: 11px; color: rgba(255,255,255,.42); }
.btn-logout {
  width: 100%;
  padding: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
  cursor: pointer;
  transition: all .14s;
}
.btn-logout:hover { background: rgba(220,38,38,.2); color: #fca5a5; }

/* Mobile overlay */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 250; }
.overlay.show { display: block; }

/* --- Main Content ------------------------------------------ */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(26,31,60,.05);
}
.topbar-left  { display: flex; align-items: center; gap: 14px; }
.topbar-title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.topbar-date  { font-size: 13px; color: var(--muted); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; }

.page-body { padding: 28px; flex: 1; }

/* =============================================================
   ALERTS
============================================================= */
.alert {
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn .3s ease;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
@keyframes slideIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }

/* =============================================================
   LAYOUT HELPERS
============================================================= */
.two-col   { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.four-col  { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =============================================================
   STAT CARDS
============================================================= */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(26,31,60,.05);
}
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-meta  { font-size: 12px; color: var(--light); margin-top: 5px; }
.stat-green  { color: var(--green)  !important; font-size: 20px !important; }
.stat-orange { color: var(--orange) !important; font-size: 20px !important; }

/* =============================================================
   CARD
============================================================= */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.card-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.card-title { font-size: 15px; font-weight: 700; margin: 0; }
.card-body  { padding: 22px; }

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .14s, border-color .14s, transform .1s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover  { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-dark); }
.btn-outline:hover { background: var(--surface2); }
.btn-danger  { background: #fef2f2; color: var(--red); border-color: #fecaca; }
.btn-danger:hover  { background: var(--red); color: #fff; border-color: var(--red); }
.btn-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.btn-success:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn-sm   { padding: 5px 13px; font-size: 12px; border-radius: 6px; }
.btn-link { background: none; border: none; color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.btn-link:hover { text-decoration: underline; }

/* Action grid inside card */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* =============================================================
   FORMS
============================================================= */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.required   { color: var(--red); }
.optional   { color: var(--muted); font-weight: 400; font-size: 12px; }
.form-hint  { font-size: 12px; color: var(--muted); margin-top: 4px; }

.form-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .14s, box-shadow .14s;
}
.form-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,58,95,.09); }
.form-input::placeholder { color: var(--light); }
.form-input:disabled { background: var(--surface2); color: var(--muted); cursor: not-allowed; }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.65; }

/* =============================================================
   TAGS / BADGES / CHIPS
============================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.tag-green  { background: #ecfdf5; color: #065f46; }
.tag-blue   { background: #eff6ff; color: #1e40af; }
.tag-orange { background: #fffbeb; color: #92400e; }
.tag-gray   { background: var(--surface2); color: var(--muted); }
.tag-red    { background: #fef2f2; color: #991b1b; }

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
  white-space: nowrap;
}
.chip-green { background: #ecfdf5; color: #065f46; }
.chip-gray  { background: var(--surface2); color: var(--muted); }

/* =============================================================
   LIST ITEMS (inside cards)
============================================================= */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
  gap: 10px;
  flex-wrap: wrap;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface2); }
.list-item-title { font-size: 14px; font-weight: 600; }
.list-item-meta  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.empty-msg { padding: 24px 22px; font-size: 13px; color: var(--muted); }

/* =============================================================
   TABLE
============================================================= */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}
.data-table td { padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f7f9ff; }
.row-highlight td { background: #f0fdf4 !important; }

/* =============================================================
   AVATAR
============================================================= */
.avatar    { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; }
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }

/* =============================================================
   BIRTHDAY BANNER
============================================================= */
.bday-banner {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.bday-banner-icon svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; width: 40px; height: 40px; }
.bday-banner-title { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.bday-banner-sub   { font-size: 13px; opacity: .72; }

/* =============================================================
   WELCOME CARD  (employee dashboard)
============================================================= */
.welcome-card {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  color: #fff;
  margin-bottom: 22px;
}
.welcome-text { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.welcome-sub  { font-size: 14px; opacity: .7; }

/* Quick access cards grid */
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }

.quick-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.qc-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qc-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.qc-blue   { background: #e8f0fb; color: var(--brand); }
.qc-purple { background: #f3f0ff; color: var(--purple); }
.qc-orange { background: var(--accent-light); color: var(--accent); }
.qc-teal   { background: #e0f2fe; color: #0369a1; }
.qc-body  { flex: 1; min-width: 0; }
.qc-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.qc-sub   { font-size: 12px; color: var(--muted); line-height: 1.4; }

.tagline-quote  { font-size: 17px; font-style: italic; line-height: 1.75; color: var(--text); }
.tagline-source { font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 600; }

/* =============================================================
   EVENTS
============================================================= */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border-dark);
  color: var(--muted);
  cursor: pointer;
  transition: all .13s;
  background: var(--surface);
  text-decoration: none;
}
.filter-btn:hover  { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.section-heading { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

.event-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 16px 26px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,31,60,.05);
  transition: box-shadow .14s;
}
.event-card:hover   { box-shadow: var(--shadow); }
.event-card--past   { opacity: .6; }
.event-bar          { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: var(--radius) 0 0 var(--radius); }
.event-card-inner   { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.event-card-body    { flex: 1; min-width: 0; }
.event-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.event-header       { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.event-title        { font-size: 15px; font-weight: 700; }
.event-meta         { font-size: 12px; color: var(--muted); }
.event-desc         { font-size: 13px; color: var(--text); margin-top: 7px; line-height: 1.6; }

/* =============================================================
   MODAL
============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-head h3 { font-size: 17px; font-weight: 700; margin: 0; }
.modal-close   { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); line-height: 1; padding: 2px 6px; border-radius: 4px; }
.modal-close:hover { background: var(--surface2); }

/* =============================================================
   UPLOAD BOX
============================================================= */
.upload-box {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upload-box:hover  { border-color: var(--brand-hover); background: var(--brand-light); }
.upload-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.upload-sub   { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.file-chosen-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; margin-top: 14px; font-size: 13px; font-weight: 500; }

/* =============================================================
   CALENDAR VIEWER (employee page)
============================================================= */
.cal-file-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cal-icon { width: 64px; height: 64px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cal-file-info  { flex: 1; min-width: 0; }
.cal-file-name  { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.cal-file-meta  { font-size: 13px; color: var(--muted); }
.cal-file-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* =============================================================
   ABOUT US PAGE
============================================================= */
.about-hero {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: 38px 36px;
  color: #fff;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.about-hero::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(232,160,32,.1);
  right: -60px; top: -60px;
  pointer-events: none;
}
.about-company-name { font-family: 'DM Serif Display', serif; font-size: 30px; margin-bottom: 12px; position: relative; z-index: 1; }
.about-tagline { font-size: 15px; opacity: .75; max-width: 520px; line-height: 1.7; position: relative; z-index: 1; margin: 0; }

.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 10px; }
.section-text  { font-size: 14px; line-height: 1.85; color: var(--text); margin: 0; }

.quote-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 5px solid var(--accent);
  margin-bottom: 14px;
}
.quote-text  { font-size: 16px; font-style: italic; line-height: 1.75; color: var(--text); margin: 0 0 10px; }
.quote-attr  { font-size: 12px; color: var(--muted); font-weight: 600; }

/* =============================================================
   BIRTHDAYS
============================================================= */
.month-group { padding: 12px 22px; border-bottom: 1px solid var(--border); }
.month-group:last-child { border-bottom: none; }
.month-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.bday-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bday-tag  { font-size: 12px; background: var(--surface2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; color: var(--text); }
.bday-tag em { color: var(--muted); font-style: normal; }

/* =============================================================
   DASHBOARD DEPT BAR
============================================================= */
.dept-row   { display: flex; align-items: center; gap: 14px; padding: 10px 22px; border-bottom: 1px solid var(--border); }
.dept-row:last-child { border-bottom: none; }
.dept-name  { font-size: 13px; font-weight: 500; min-width: 120px; }
.dept-bar-bg   { flex: 1; height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.dept-bar-fill { height: 100%; background: var(--brand); border-radius: 3px; transition: width .6s ease; }
.dept-count { font-size: 13px; font-weight: 700; min-width: 24px; text-align: right; }

/* =============================================================
   MISC
============================================================= */
.page-top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.meta-count   { font-size: 13px; color: var(--muted); }
.empty-state  { padding: 60px 24px; text-align: center; }
.empty-state svg { display: block; margin: 0 auto 16px; color: var(--light); }
.empty-title  { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.empty-sub    { font-size: 14px; color: var(--muted); margin: 0; }
.btn-link-plain { color: var(--brand); font-weight: 600; font-size: 13px; }

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .four-col  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    height: 100vh;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .main-content { margin-left: 0; }
  .topbar { padding: 12px 16px; }
  .page-body { padding: 16px; }
  .hamburger { display: flex; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .auth-left  { display: none; }
  .auth-right { padding: 36px 28px; }
  .cal-file-row { flex-direction: column; align-items: flex-start; }
  .cal-file-actions { width: 100%; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
}