/* ============================================================
   GIADEC Leave Management System — Main Stylesheet
   Ghana Integrated Aluminium Development Corporation
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --primary:       #A41C0A;
  --primary-light: #c22210;
  --red-bright:    #E02D08;
  --orange:        #F57208;
  --yellow:        #FCC10C;
  --gray-light:    #A5A5A5;
  --gray-dark:     #636363;
  --white:         #FFFFFF;
  --off-white:     #F8F7F5;
  --surface:       #FFFFFF;
  --surface-2:     #F4F2EF;
  --border:        #E8E5E0;
  --text-main:     #1A1614;
  --text-secondary:#5A5450;
  --text-muted:    #8C887F;
  --success:       #1A7A4A;
  --success-bg:    #E8F5EE;
  --danger:        #A41C0A;
  --danger-bg:     #FDECEA;
  --warning:       #D97706;
  --warning-bg:    #FEF3C7;
  --info:          #1D4ED8;
  --info-bg:       #EFF6FF;
  --sidebar-w:     260px;
  --header-h:      64px;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:     0 12px 32px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
  --transition:    all .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--red-bright); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  background: linear-gradient(160deg, #7A1508 0%, #A41C0A 40%, #B82010 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  color: var(--primary); flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}
.sidebar-logo-text { color: white; }
.sidebar-logo-title {
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  line-height: 1.2;
}
.sidebar-logo-sub {
  font-size: 10px; opacity: .65; margin-top: 1px; letter-spacing: .3px;
}

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-user-name {
  color: white; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px; color: rgba(255,255,255,.55);
  margin-top: 2px; text-transform: uppercase; letter-spacing: .5px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

.nav-section-label {
  padding: 10px 20px 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,.4);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  margin: 1px 0;
}
.nav-item:hover {
  background: rgba(255,255,255,.1);
  color: white;
  border-left-color: var(--yellow);
}
.nav-item.active {
  background: rgba(255,255,255,.15);
  color: white;
  border-left-color: var(--yellow);
  font-weight: 600;
}
.nav-item-icon {
  width: 20px; text-align: center;
  font-size: 16px; flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--yellow); color: var(--primary);
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  min-width: 20px; text-align: center;
}

.sidebar-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-footer .nav-item {
  padding: 8px 0;
  border-left: none !important;
}

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Top Header ── */
.topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-toggle {
  display: none;
  background: none; border: none;
  font-size: 20px; color: var(--gray-dark);
  padding: 8px; border-radius: 8px;
}
.topbar-toggle:hover { background: var(--surface-2); }
.topbar-title {
  font-size: 16px; font-weight: 700; color: var(--text-main);
  flex: 1;
}
.topbar-actions {
  display: flex; align-items: center; gap: 8px;
}
.topbar-btn {
  background: none; border: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gray-dark);
  transition: var(--transition); position: relative;
}
.topbar-btn:hover { background: var(--surface-2); }
.topbar-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--red-bright); border-radius: 50%;
  border: 2px solid white;
}
.topbar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
  border: 1px solid transparent;
}
.topbar-user:hover { background: var(--surface-2); border-color: var(--border); }
.topbar-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--red-bright));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.topbar-user-info { display: flex; flex-direction: column; }
.topbar-user-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.topbar-user-role { font-size: 11px; color: var(--text-muted); }

/* ── Page Content ── */
.page-content {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
}
.page-header {
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 24px; font-weight: 800; color: var(--text-main);
  font-family: 'Playfair Display', serif;
}
.page-header p {
  font-size: 14px; color: var(--text-secondary); margin-top: 4px;
}
.page-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 8px;
}
.page-breadcrumb a { color: var(--primary); }
.page-breadcrumb span { color: var(--gray-light); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title {
  font-size: 15px; font-weight: 700; color: var(--text-main);
}
.card-body { padding: 20px; }

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: flex-start; justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.primary::before   { background: var(--primary); }
.stat-card.red::before       { background: var(--red-bright); }
.stat-card.orange::before    { background: var(--orange); }
.stat-card.yellow::before    { background: var(--yellow); }
.stat-card.green::before     { background: var(--success); }

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-info {}
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--text-main); line-height: 1.1; margin: 6px 0 4px; }
.stat-sub { font-size: 12px; color: var(--text-secondary); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-card.primary .stat-icon   { background: #FDECEA; }
.stat-card.red .stat-icon       { background: #FDECEA; }
.stat-card.orange .stat-icon    { background: #FEF3C7; }
.stat-card.yellow .stat-icon    { background: #FEF9E7; }
.stat-card.green .stat-icon     { background: var(--success-bg); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .2px;
  white-space: nowrap;
}
.badge-red    { background: var(--danger-bg); color: var(--danger); }
.badge-orange { background: #FEF3C7; color: #B45309; }
.badge-yellow { background: #FEF9E7; color: #92610A; }
.badge-purple { background: #F3E8FF; color: #6B21A8; }
.badge-green  { background: var(--success-bg); color: var(--success); }
.badge-gray   { background: #F3F4F6; color: var(--gray-dark); }
.badge-blue   { background: var(--info-bg); color: var(--info); }

/* ── Tables ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead tr { background: var(--surface-2); }
th {
  padding: 12px 16px;
  text-align: left; font-weight: 600;
  color: var(--text-secondary); font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}
tbody tr { transition: var(--transition); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: none; }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background: var(--surface);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(164,28,10,.1);
}
.form-control::placeholder { color: var(--gray-light); }
select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636363' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--danger); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600;
  border: none; transition: var(--transition);
  font-family: inherit; white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn-sm  { padding: 6px 13px; font-size: 12.5px; }
.btn-lg  { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--red-bright); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(164,28,10,.3); }

.btn-secondary { background: var(--surface-2); color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #158040; color: white; transform: translateY(-1px); }

.btn-danger  { background: var(--danger);  color: white; }
.btn-danger:hover  { background: var(--red-bright); color: white; }

.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: #d96207; color: white; }

.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* ── Alerts ── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px; font-weight: 500;
}
.alert-icon { font-size: 16px; flex-shrink: 0; }
.alert-close { margin-left: auto; background: none; border: none; font-size: 18px; opacity: .5; cursor: pointer; }
.alert-close:hover { opacity: 1; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #BBF7D0; }
.alert-error   { background: var(--danger-bg); color: var(--danger); border: 1px solid #FCA5A5; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #FDE68A; }
.alert-info    { background: var(--info-bg); color: var(--info); border: 1px solid #BFDBFE; }

/* ── Filters Bar ── */
.filters-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.filter-select {
  padding: 7px 30px 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px; font-family: inherit;
  background: white;
  cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636363' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}
.filter-select:focus { border-color: var(--primary); }
.filter-search {
  padding: 7px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 13px; font-family: inherit;
  outline: none; min-width: 200px;
}
.filter-search:focus { border-color: var(--primary); }

/* ── Approval Workflow Steps ── */
.workflow-steps {
  display: flex; gap: 0;
  margin: 20px 0;
}
.workflow-step {
  flex: 1;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-right: none;
  position: relative;
  font-size: 13px;
}
.workflow-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.workflow-step:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--border); }
.workflow-step.approved { background: var(--success-bg); border-color: #BBF7D0; }
.workflow-step.rejected { background: var(--danger-bg);  border-color: #FCA5A5; }
.workflow-step.active   { background: #FEF3C7; border-color: #FDE68A; }
.workflow-step-num  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.workflow-step-name { font-weight: 600; color: var(--text-main); margin: 2px 0; }
.workflow-step-status { font-size: 12px; color: var(--text-secondary); }
.workflow-arrow {
  position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--gray-light); font-size: 16px;
}

/* ── Leave Balance Cards ── */
.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.balance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}
.balance-card:hover { box-shadow: var(--shadow); }
.balance-type { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.balance-days { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.balance-days span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.balance-bar { height: 4px; background: var(--border); border-radius: 2px; margin: 10px 0 6px; overflow: hidden; }
.balance-bar-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width .5s ease; }
.balance-used { font-size: 11px; color: var(--text-muted); }

/* ── Empty State ── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(.95); transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--text-muted); cursor: pointer; }
.modal-body   { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ── Pagination ── */
.pagination {
  display: flex; align-items: center; gap: 4px;
  padding: 16px 20px; border-top: 1px solid var(--border);
}
.pagination-info { font-size: 13px; color: var(--text-muted); margin-right: auto; }
.page-btn {
  width: 34px; height: 34px;
  border-radius: 8px; border: 1px solid var(--border);
  background: white; color: var(--text-main); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.page-btn:hover { background: var(--surface-2); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #7A1508 0%, #A41C0A 50%, #C52010 100%);
  position: relative;
  overflow: hidden;
}
.login-bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.login-left {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 60px;
  color: white;
}
.login-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.login-brand-logo {
  width: 56px; height: 56px;
  background: var(--yellow); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--primary);
}
.login-brand-name { font-size: 22px; font-weight: 800; line-height: 1.1; }
.login-brand-sub  { font-size: 13px; opacity: .6; margin-top: 2px; }
.login-headline {
  font-family: 'Playfair Display', serif;
  font-size: 42px; line-height: 1.15; font-weight: 700;
  margin-bottom: 20px;
}
.login-headline span { color: var(--yellow); }
.login-desc { font-size: 16px; opacity: .75; line-height: 1.7; max-width: 400px; }
.login-features { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.login-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; opacity: .8;
}
.login-feature-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; flex-shrink: 0; }

.login-right {
  width: 480px; flex-shrink: 0;
  background: white;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px;
}
.login-form-title { font-size: 24px; font-weight: 800; color: var(--text-main); text-align: center; margin-bottom: 8px; }
.login-form-sub   { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 36px; }

.btn-microsoft {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 24px;
  background: #0078D4; color: white;
  border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: var(--transition);
}
.btn-microsoft:hover { background: #006BBE; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,120,212,.3); }
.btn-microsoft svg { width: 20px; height: 20px; flex-shrink: 0; }

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--text-muted); font-size: 13px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.login-footer-note { margin-top: 32px; font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.6; }

/* ── Timeline (Approval History) ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: 19px; top: 40px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 2px solid var(--border);
  background: var(--surface);
  position: relative; z-index: 1;
}
.timeline-dot.approved { background: var(--success-bg); border-color: var(--success); }
.timeline-dot.rejected { background: var(--danger-bg);  border-color: var(--danger); }
.timeline-dot.pending  { background: #FEF3C7; border-color: var(--yellow); }
.timeline-content { flex: 1; padding-top: 6px; }
.timeline-content h4 { font-size: 14px; font-weight: 700; }
.timeline-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.timeline-comment {
  margin-top: 8px; padding: 10px 14px;
  background: var(--surface-2); border-radius: 8px;
  font-size: 13px; color: var(--text-secondary);
  border-left: 3px solid var(--border);
}

/* ── Top Strip (GIADEC accent) ── */
.top-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--red-bright) 33%, var(--orange) 66%, var(--yellow) 100%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .form-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar-toggle { display: flex; }
  .page-content { padding: 16px; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .workflow-steps { flex-direction: column; }
  .workflow-step { border-right: 1px solid var(--border) !important; border-bottom: none; border-radius: 0 !important; }
  .workflow-step:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
  .workflow-step:last-child  { border-radius: 0 0 var(--radius) var(--radius) !important; border-bottom: 1px solid var(--border) !important; }
  .login-left { display: none; }
  .login-right { width: 100%; padding: 40px 24px; }
  .topbar-user-info { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .balance-grid { grid-template-columns: 1fr 1fr; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .filter-search { min-width: unset; }
}

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

/* ── Utility ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--success); }
.fw-bold     { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-1 { flex: 1; }
.hidden { display: none; }

/* ── Print ── */
@media print {
  .sidebar, .topbar, .btn, .filters-bar { display: none !important; }
  .main-content { margin-left: 0; }
  .page-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
