/* CCOO Operations Dashboard */
:root {
  --sidebar-w: 230px;
  --sidebar-bg: #0d1b2a;
  --sidebar-hover: #1b3a5c;
  --topbar-h: 56px;
}
body { background: #f0f2f5; font-family: 'Segoe UI', sans-serif; }

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh;
  width: var(--sidebar-w); background: var(--sidebar-bg);
  display: flex; flex-direction: column; z-index: 1000;
  transition: width .25s ease;
}
.sidebar.collapsed { width: 60px; }
.sidebar-brand {
  padding: 18px 20px; font-size: 1.2rem; font-weight: 700;
  color: #fff; border-bottom: 1px solid #1b3a5c; white-space: nowrap; overflow: hidden;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; color: #adb5bd; font-size: .875rem;
  text-decoration: none; border-left: 3px solid transparent;
  transition: all .2s; white-space: nowrap; overflow: hidden;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: #fff; background: var(--sidebar-hover);
  border-left-color: #0d6efd;
}
.sidebar-nav .nav-link i { min-width: 20px; text-align: center; font-size: .95rem; }
.sidebar-footer {
  padding: 12px 20px; font-size: .75rem; color: #6c757d;
  border-top: 1px solid #1b3a5c; white-space: nowrap; overflow: hidden;
}

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left .25s ease;
}
.main-content.expanded { margin-left: 60px; }

/* Topbar */
.topbar {
  background: #fff; height: var(--topbar-h);
  border-bottom: 1px solid #dee2e6;
  position: sticky; top: 0; z-index: 100;
}

/* Content area */
.content-area { padding-bottom: 40px; }
.page-header { border-bottom: 1px solid #dee2e6; padding-bottom: 12px; }

/* KPI Cards */
.kpi-card {
  background: #fff; border-radius: 12px;
  padding: 18px 16px; border-left: 4px solid #dee2e6;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  height: 100%;
}
.kpi-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 10px;
}
.kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.kpi-label { font-size: .78rem; color: #6c757d; margin-top: 4px; }

/* Department card links */
.dept-card { transition: transform .15s, box-shadow .15s; }
.dept-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }

/* Table tweaks */
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.table td { font-size: .875rem; vertical-align: middle; }

/* Card */
.card { border: none; border-radius: 12px; }
.card-header { background: #fff; border-bottom: 1px solid #f0f2f5; font-size: .9rem; border-radius: 12px 12px 0 0 !important; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-nav .nav-link span,
  .sidebar-brand span,
  .sidebar-footer { display: none; }
  .main-content { margin-left: 60px; }
}
