/* Cloned from public/css/style.css with updates */
/* Global Stylesheet - light pastel modern design */
/* Mobile responsive version */
:root {
  /* Palette */
  --color-primary: #5c7cfa;   /* Soft blue */
  --color-primary-hover: #4f6cf5;
  --color-secondary: #74c69d; /* Soft green */
  --color-accent: #f7b267;    /* Warm pastel */
  --color-highlight: #ff6f91; /* Light coral pink */
  --color-bg: #f8f9fa;        /* Light background */
  --color-surface: #ffffff;
  --color-text: #2d2d2d;      /* Main text */
  --color-muted: #6b7280;
  --color-border: #e5e7eb;

  /* Pastel tints */
  --primary-soft: #e9edff;
  --secondary-soft: #e6f5ee;
  --accent-soft: #fff1e4;
  --highlight-soft: #ffe6ed;

  /* Typography scale */
  --fs-1: 0.875rem;  /* 14 */
  --fs-2: 1rem;      /* 16 */
  --fs-3: 1.125rem;  /* 18 */
  --fs-4: 1.25rem;   /* 20 */
  --fs-5: 1.5rem;    /* 24 */
  --fs-6: 1.875rem;  /* 30 */
  --fs-7: 2.25rem;   /* 36 */

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;

  /* Radii & shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  
  /* Loading spinner */
  --spinner-size: 16px;
  --duration-fast: 120ms;
  --duration: 220ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Horizontal overflow guard */
html, body { width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-bg), #ffffff 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--color-muted); }
.lead { font-size: 1.125rem; color: var(--color-muted); }

.container { max-width: 1200px; margin: 0 auto; padding: 1rem; width: 100%; }

.site-header {
  position: sticky;
  top: 0px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(16,24,40,0.04);
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; justify-content: center; }
/* Brand logo removed */
.brand-logo {
  display: none;
}

/* Small logo in header actions */
.brand-logo-small {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}

.header-logo-left {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.header-logo-left:hover {
  opacity: 0.8;
}

.header-logo-left:active {
  opacity: 0.6;
}

.header-logo {
  display: none;
}
/* Global logo rule per spec */
a.brand img { display: none; }
.header-right { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-left: auto;
  position: relative;
}
.header-actions { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
}
.notif-wrapper { 
  position: relative; 
}
.notif-dropdown { 
  position: absolute; 
  right: 0; 
  top: 50px; 
  width: 380px; 
  background: #fff; 
  border: 1px solid var(--color-border); 
  border-radius: 16px; 
  box-shadow: 0 20px 60px rgba(16, 24, 40, 0.15);
  display: none;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease-out;
}
.notif-dropdown.open { display: block; }

.icon-button {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
}

.icon-button:hover {
  background-color: rgba(0,0,0,0.1);
}
.notif-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 16px 20px; 
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 16px 16px 0 0;
}
.notif-list { 
  list-style: none; 
  margin: 0; 
  padding: 12px; 
  max-height: 400px; 
  overflow-y: auto; 
}
.notif-item { 
  padding: 16px; 
  border-radius: 12px; 
  margin-bottom: 8px;
  transition: background-color 0.2s ease;
  border: 1px solid transparent;
}
.notif-item:hover {
  background: var(--color-bg);
}
.notif-item.unread { 
  background: var(--primary-soft); 
  border-left: 4px solid var(--color-primary);
  font-weight: 600;
}
.notif-item.unread:hover {
  background: #e3edff;
}
.notif-item small {
  display: block; 
  color: var(--color-muted); 
  font-size: 0.75rem; 
  margin-top: 6px;
  font-weight: 400;
}
.notif-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-muted);
  font-style: italic;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
  position: relative;
}
.icon-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.badge {
  position: absolute; top: -10px; right: -16px; min-width: 18px; height: 18px;
  padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1; color: #fff; box-shadow: var(--shadow-sm);
}
.badge-pink { background: var(--color-highlight); }

/* Status badge styles */
.badge-warning {
  background: #f59e0b !important;
  color: #fff !important;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  position: static !important;
  top: auto !important;
  right: auto !important;
  min-width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

.badge-danger {
  background: #ef4444 !important;
  color: #fff !important;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  position: static !important;
  top: auto !important;
  right: auto !important;
  min-width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

.badge-primary {
  background: #3b82f6 !important;
  color: #fff !important;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  position: static !important;
  top: auto !important;
  right: auto !important;
  min-width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

.badge-success {
  background: #10b981 !important;
  color: #fff !important;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  position: static !important;
  top: auto !important;
  right: auto !important;
  min-width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

.badge-secondary {
  background: #6b7280 !important;
  color: #fff !important;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  position: static !important;
  top: auto !important;
  right: auto !important;
  min-width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary-soft); color: var(--color-text);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
  border: 1px solid var(--color-border);
}

.nav-toggle { 
  display: none; 
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 2.5vw, 2.75rem); margin: 0 0 8px; }
.hero-actions { margin-top: 20px; display: inline-flex; gap: 12px; }

.features { padding: 32px 0 56px; }
.about { padding: 16px 0 72px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  transform: translateY(0);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration) var(--ease);
  animation: fadeUp .5s var(--ease) both;
}
.card + .card { margin-top: 16px; }
.card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.card-title { margin:0; font-size: var(--fs-5); }
.card-subtitle { margin:0; color: var(--color-muted); font-size: var(--fs-2); }
.card-actions { display:flex; gap:8px; align-items:center; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat { font-size: 2rem; font-weight: 700; color: var(--primary-700); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-text);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-secondary { background: var(--color-secondary); border-color: var(--color-secondary); color: #0f172a; }
.btn-secondary:hover { filter: brightness(0.95); }
.btn-accent { background: var(--color-accent); border-color: var(--color-accent); color: #0f172a; }
.btn-accent:hover { filter: brightness(0.95); }
.btn-outline { background: transparent; color: var(--color-text); }
.btn-outline:hover { background: #fff; }

/* Tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.table thead th { background: var(--primary-soft); color: var(--color-text); text-align: left; padding: 12px 14px; font-weight: 600; font-size: var(--fs-2); }
.table tbody td { padding: 12px 14px; border-top: 1px solid var(--color-border); font-size: var(--fs-2); }
.table tbody tr:hover { background: #fafbff; }
.table-responsive { width: 100%; overflow-x: auto; border-radius: var(--radius-md); }
.table-responsive::-webkit-scrollbar { height: 10px; }
.table-responsive::-webkit-scrollbar-thumb { background: #d9defb; border-radius: 999px; }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; font-size: var(--fs-1); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.badge-soft { padding: 6px 10px; border-radius: 999px; font-size: var(--fs-1); border: 1px solid var(--color-border); }
.badge-blue { background: var(--primary-soft); }
.badge-green { background: var(--secondary-soft); }
.badge-orange { background: var(--accent-soft); }
.badge-pink-soft { background: var(--highlight-soft); }
.status .dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.status-pending { background: var(--primary-soft); color: var(--color-text); }
.status-pending .dot { background: var(--color-primary); }
.status-approved { background: var(--secondary-soft); color: var(--color-text); }
.status-approved .dot { background: var(--color-secondary); }
.status-rejected { background: var(--highlight-soft); color: var(--color-text); }
.status-rejected .dot { background: var(--color-highlight); }
.status-proc { background: var(--accent-soft); color: var(--color-text); }
.status-proc .dot { background: var(--color-accent); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: center; }
.step { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; border: 1px dashed var(--color-border); background: #fff; font-size: var(--fs-1); }
.step .marker { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.step-approved { border-style: solid; background: var(--secondary-soft); }
.step-approved .marker { background: var(--color-secondary); color: #0f172a; }
.step-current { border-style: solid; background: var(--primary-soft); }
.step-current .marker { background: var(--color-primary); color: #fff; }
.step-upcoming { opacity: .8; }
.step-rejected { background: var(--highlight-soft); border-style: solid; }
.step-rejected .marker { background: var(--color-highlight); color: #fff; }

/* Action bars */
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reject-area { display: none; width: 100%; }
.reject-area textarea { width: 100%; min-height: 80px; padding: 10px; border-radius: 10px; border: 1px solid var(--color-border); }
.actions.disabled { opacity: .5; pointer-events: none; }

.site-footer { padding: 24px 0; border-top: 1px solid var(--color-border); margin-top: 40px; background: #fff; }

/* App shell (dashboard) */
.app-shell { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.sidebar {
  position: sticky; top: 72px; align-self: start;
  height: calc(100vh - 88px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px;
  transition: width var(--duration) var(--ease), transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  width: 260px;
}
.sidebar.collapsed { width: 72px; }
.sidebar .section-title { font-size: var(--fs-2); padding: 8px 10px; color: var(--color-muted); }
.sidebar .menu { list-style: none; padding: 6px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar .menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; color: var(--color-text);
  transition: background var(--duration) var(--ease), transform var(--duration-fast) var(--ease);
}
.sidebar .menu a:hover { background: var(--primary-soft); transform: translateX(2px); }
.sidebar .menu .icon { width: 18px; text-align: center; }
.sidebar .menu a.active { background: var(--highlight-soft); box-shadow: inset 0 0 0 1px var(--color-highlight); }
.sidebar .menu a.active .label { font-weight: 600; }

.content { min-width: 0; }

/* Global mobile-only default (hidden on desktop by default) */
.mobile-only { display: none; }

/* Ensure mobile-only controls appear only on small screens */
@media (max-width: 768px) {
  .mobile-only { display: inline-flex !important; }
  /* Let close button be visible on mobile when sidebar is fixed */
  .sidebar .sidebar-close.mobile-only { display: inline-flex !important; }
}

/* Desktop will hide mobile-only by default via base .mobile-only rule; mobile media query enables it */

/* Breakpoints */
@media (min-width: 1200px) {
  .container { padding-left: 0; padding-right: 0; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-toggle { 
    display: block !important; 
    background: transparent; 
    border: none; 
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
  }
  .nav-toggle:hover {
    background-color: rgba(0,0,0,0.1);
  }
  /* Mobile navigation backdrop */
  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
  }
  .nav-backdrop.open {
    display: block;
  }

  .app-shell { grid-template-columns: 1fr; }
  .sidebar { 
    position: fixed; 
    top: 64px; 
    left: 0; 
    height: calc(100vh - 64px); 
    transform: translateX(-100%); 
    width: 260px; 
    border-radius: 0 14px 14px 0; 
    z-index: 1000;
  }
  .sidebar.open { transform: translateX(0); }
}

/* Utility spacing */
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .6s var(--ease) both; }

/* Auth pages */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: var(--space-7) 0; }
.auth-card {
  width: min(440px, 92%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: fadeUp .5s var(--ease) both;
}
.auth-logo { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--color-primary); align-items: center; justify-content: center; font-weight: 700; box-shadow: var(--shadow-sm); }
.auth h1 { margin: 16px 0 6px; font-size: var(--fs-6); }
.auth .muted { margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.form-field label { font-size: var(--fs-1); color: var(--color-muted); }
.input, select.input {
  padding: 12px 12px; border-radius: 10px; border: 1px solid var(--color-border);
  font-size: var(--fs-2); background: #fff;
}
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.form-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-1); color: var(--color-muted); }

/* Card accents */
.card-accent-primary { border-top: 4px solid var(--color-primary); }
.card-accent-secondary { border-top: 4px solid var(--color-secondary); }
.card-accent-accent { border-top: 4px solid var(--color-accent); }
.card-accent-highlight { border-top: 4px solid var(--color-highlight); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; }
.modal.show { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(2px); }
.modal-dialog { position: relative; max-width: 820px; width: 92%; margin: 8vh auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: fadeUp .25s var(--ease) both; }
.modal-header, .modal-footer { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); }
.modal-footer { border-top: 1px solid var(--color-border); border-bottom: none; }
.modal-body { padding: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comments { margin-top: 12px; }
.comments-body { max-height: 180px; overflow: auto; background: var(--primary-soft); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px; }
.comment { padding: 6px 0; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); border-radius: 999px; padding: 10px 16px; opacity: 0; pointer-events: none; transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* My Requests page styles */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.request-card .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.request-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem 0;
}

.request-id {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.request-card .card-body {
  padding: 1rem 1.5rem;
  flex-grow: 1;
}

.request-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--color-text);
}

.request-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-label {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.meta-value {
  font-weight: 500;
  color: var(--color-text);
}

.request-notes, .rejection-reason {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
}

.request-notes {
  background: var(--accent-soft);
  border-left: 3px solid var(--color-accent);
}

.rejection-reason {
  background: var(--highlight-soft);
  border-left: 3px solid var(--color-highlight);
}

.request-notes p, .rejection-reason p {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
}

.request-card .card-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.timeline-wrapper {
  width: 100%;
}

.timeline-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.timeline-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  position: relative;
}

.step-icon {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid;
}

.step-circle.completed {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}

.step-circle.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  animation: pulse 2s infinite;
}

.step-circle.rejected {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  color: white;
}

.step-circle.pending {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-muted);
}

.step-label {
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-muted);
  font-weight: 500;
}

.timeline-step.completed .step-label {
  color: var(--color-secondary);
  font-weight: 600;
}

.timeline-step.current .step-label {
  color: var(--color-primary);
  font-weight: 700;
}

.timeline-step.rejected .step-label {
  color: var(--color-highlight);
  font-weight: 600;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.empty-state {
  margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .requests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .timeline-horizontal {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .timeline-step {
    flex: 0 1 auto;
    min-width: 70px;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
}

/* Page header with filters */
.page-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.page-header-text {
  flex: 1;
  min-width: 300px;
}

.page-header-actions {
  display: flex;
  gap: var(--space-4);
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 250px;
  flex: 1;
  max-width: 400px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: var(--space-2) var(--space-7) var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: var(--fs-2);
  color: var(--color-text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(92, 124, 250, 0.1);
}

.search-input:hover {
  border-color: var(--color-primary);
}

.search-input::placeholder {
  color: var(--color-muted);
  font-style: italic;
}

.search-icon {
  position: absolute;
  right: var(--space-3);
  color: var(--color-muted);
  font-size: 1rem;
  pointer-events: none;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 150px;
}

.filter-label {
  font-size: var(--fs-1);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.filter-select {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: var(--fs-2);
  color: var(--color-text);
  transition: border-color var(--duration) var(--ease);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(92, 124, 250, 0.1);
}

.filter-select:hover {
  border-color: var(--color-primary);
}

/* Filter responsive design */
@media (max-width: 768px) {
  .page-header-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .page-header-actions {
    justify-content: stretch;
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .search-group {
    min-width: auto;
    max-width: none;
    order: -1; /* Show search bar first on mobile */
  }
  
  .filter-group {
    flex: 1;
    min-width: auto;
  }
}

/* Filter empty state */
.filter-empty-state {
  margin-top: var(--space-6);
}

/* Card footer with actions */
.card-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.timeline-wrapper {
  flex: 1;
  min-width: 300px;
}

.card-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-1);
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
}

.btn-details:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive card footer */
@media (max-width: 768px) {
  .card-footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
  
  .timeline-wrapper {
    min-width: auto;
  }
  
  .card-actions {
    justify-content: center;
  }
  
  .btn-details {
    justify-content: center;
    width: 100%;
  }
}

/* Loading spinner and button states */
.loading-spinner {
  display: inline-block;
  width: var(--spinner-size);
  height: var(--spinner-size);
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn.loading {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}


