/* Staff Corner — styles.css */

/* Minimal reset */
html { box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
*,*::before,*::after{ box-sizing: inherit; }
body{ margin:0; line-height:1.45; color:#0b1220; background:#f6f8fb; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }

:root{
  --sidebar-w: 260px;
  --header-h: 64px;
  --accent: #2b8aef; /* blue */
  --muted: #6b7280;
  --bg: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(11,18,32,0.06);
}

/* Top header */
.topbar{
  height:var(--header-h);
  background:linear-gradient(90deg,var(--bg),#ffffff);
  display:flex; align-items:center; gap:12px; padding:0 18px; border-bottom:1px solid rgba(11,18,32,0.05);
  position:sticky; top:0; z-index:40;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:600; }
.logo{ width:36px; height:36px; background:var(--accent); border-radius:8px; display:inline-grid; place-items:center; color:#fff; font-weight:700; }

/* Page shell */
.page{ display:flex; min-height:100vh; }

/* Sidebar */
.sidebar{
  width:var(--sidebar-w); background:var(--bg); border-right:1px solid rgba(11,18,32,0.04); padding:18px; box-shadow: var(--shadow);
  display:flex; flex-direction:column; gap:12px; min-height:calc(100vh - var(--header-h)); position:sticky; top:var(--header-h);
}
.nav-item{ display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:8px; color:var(--muted); font-size:14px; }
.nav-item:hover{ background:rgba(43,138,239,0.06); color:var(--accent); }
.nav-item.active{ background:rgba(43,138,239,0.10); color:var(--accent); font-weight:600; }

.profile{ margin-top:auto; padding-top:12px; border-top:1px dashed rgba(11,18,32,0.04); }
.profile .name{ font-weight:600; }
.profile .role{ font-size:13px; color:var(--muted); }

.avatar{ width:46px; height:46px; border-radius:10px; background:#e9f2ff; display:grid; place-items:center; font-weight:700; }

/* Main content */
.main{ flex:1; padding:20px; }
.cards{ display:flex; gap:16px; flex-wrap:wrap; }
.card{ background:var(--bg); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow); min-width:220px; flex:1 1 220px; }
.card .label{ font-size:12px; color:var(--muted); }
.card .value{ font-size:22px; font-weight:700; margin-top:8px; }

/* Responsive & mobile-friendly: collapse sidebar to drawer */
.hamburger{ display:none; cursor:pointer; border:0; background:transparent; padding:6px; font-size:18px; }

/* Mobile: use a small topbar with collapsible sidebar */
@media (max-width: 900px){
  .sidebar{ position:fixed; left:-100%; top:var(--header-h); height:calc(100vh - var(--header-h)); width:260px; transition:left .22s ease; z-index:60; }
  .sidebar.open{ left:0; }
  .page{ flex-direction:column; }
  .hamburger{ display:inline-block; }
  .brand{ gap:8px; }
  .main{ padding:14px; }
}

/* Accessibility helpers */
.sr-only{ position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px, 1px, 1px, 1px); white-space:nowrap; }

/* Small polish */
.search{ display:flex; align-items:center; gap:8px; background:#f3f6fb; padding:8px 10px; border-radius:10px; }
.search input{ border:0; background:transparent; outline:none; font-size:14px; }

/* Simple table styles */
table{ width:100%; border-collapse:collapse; background:transparent; }
th,td{ text-align:left; padding:10px 12px; border-bottom:1px solid rgba(11,18,32,0.04); }
thead th{ font-size:13px; color:var(--muted); }

/* Buttons */
.btn{ display:inline-block; padding:8px 12px; border-radius:8px; background:var(--accent); color:#fff; border:0; font-weight:600; cursor:pointer; }
.btn.ghost{ background:#eee; color:#111; }

/* Small fallback for older browsers */
@supports (display: grid) {
  /* nothing special — modern browsers will use grid where available */
}

/* Horizontal icon cards */
.h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.h-scroll::-webkit-scrollbar {
  height: 6px;
}
.h-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.icon-card {
  min-width: 180px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.icon-card a {
  text-decoration: none;
  color: #333;
  display: block;
}

.icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.icon-title {
  font-weight: 600;
}
/* Card grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

/* Card */
.icon-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

/* Hover animation (Framer-like) */
.icon-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

/* Active card highlight */
.icon-card.active {
  border: 2px solid #0d6efd;
  box-shadow: 0 12px 30px rgba(13,110,253,0.35);
}

/* Ripple glow */
.icon-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(13,110,253,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none; /* 🔥 FIX */
}



.icon-card:hover::after {
  opacity: 1;
}

.icon-card a {
  text-decoration: none;
  color: #333;
  display: block;
}

/* Icon */
.icon {
  font-size: 38px;
  margin-bottom: 8px;
}

/* Title */
.icon-title {
  font-weight: 600;
  font-size: 15px;
}

/* Badge */
.badge-count {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #0d6efd;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 20px;
}

.btn-success {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
}
/* Make inputs and buttons uniform */
.form-control-lg {
  height: 52px;
  font-size: 16px;
}

.input-group .btn {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full width buttons */
.loginbtn,
.btn-outline-secondary.btn-lg {
  height: 45px;
  font-size: 16px;
  font-weight: 500;
}

/* Card polish */
.card {
  border-radius: 14px;
}

.card-body {
  padding: 2rem;
}

/* Align remember + forgot nicely */
.login-options {
  font-size: 14px;
}

/* Green button premium look */
.loginbtn {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  border: none;
}

.loginbtn:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
}

