/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header === */
header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 40px;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-logo img {
  height: 48px;
  display: block;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.header-email {
  font-size: 13px;
  color: #666;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === Hamburger === */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #333;
  font-size: 22px;
  line-height: 1;
  border-radius: 4px;
}

.hamburger:hover {
  background: #f5f7fa;
}

/* === Sidebar === */
.sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  height: calc(100vh - 72px);
  width: 220px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  transform: translateX(-220px);
  transition: transform 0.25s ease;
  z-index: 100;
  padding: 8px 0;
}

.sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 16px rgba(0,0,0,0.08);
}

.sidebar a {
  display: block;
  padding: 12px 24px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.sidebar a:hover {
  background: #f5f7fa;
  color: #0066cc;
}

.sidebar a.active {
  color: #0066cc;
  background: #f0f6ff;
  border-right: 3px solid #0066cc;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.25);
  z-index: 99;
}

.sidebar-overlay.visible {
  display: block;
}

/* === Main === */
main {
  flex: 1;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

h1 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
}

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px 32px;
  margin-bottom: 24px;
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* === Badges === */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-active { background: #e6f4ea; color: #1e7e34; }
.badge-suspended { background: #fff3cd; color: #856404; }
.badge-expired { background: #f8d7da; color: #721c24; }
.badge-default { background: #e9ecef; color: #495057; }
.badge-type { background: #e8eaf6; color: #3949ab; font-size: 10px; font-variant: small-caps; }
.badge-pending  { background: #fff3cd; color: #856404; }
.badge-approved { background: #e6f4ea; color: #1e7e34; }
.badge-rejected { background: #f8d7da; color: #721c24; }

/* === Buttons === */
.btn-logout {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #cc0000;
  cursor: pointer;
}

.btn-logout:hover {
  background: #fff5f5;
  border-color: #cc0000;
}

/* === Utility === */
.mono {
  font-family: monospace;
  font-size: 12px;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #888;
}

.empty-state p {
  font-size: 16px;
}

/* === Footer === */
footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 24px 40px;
  text-align: center;
}

.smallprint {
  font-size: 12px;
  color: #888;
}

.smallprint a {
  color: #0066cc;
  text-decoration: none;
}
