﻿:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-900: #0f172a;
  --accent-500: #06b6d4;
}

body { background: #f7f9fb; }

.bg-brand-600 { background: var(--brand-600); }
.bg-brand-700 { background: var(--brand-700); }
.text-brand-600 { color: var(--brand-600); }
.text-brand-700 { color: var(--brand-700); }
.text-brand-900 { color: var(--brand-900); }
.border-brand-200 { border-color: var(--brand-100); }
.bg-brand-gradient { background: linear-gradient(90deg, #2563eb, #06b6d4); }

.card {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
}

.input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.35);
}

.btn-primary {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s ease, opacity 0.2s;
  border: none;
}

.btn-primary:hover { opacity: 0.93; transform: translateY(-1px); }

.btn-secondary {
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.25);
  border: none;
}

.btn-secondary:hover { opacity: 0.95; }

.btn-ghost {
  background: #f3f4f6;
  color: #111827;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #e5e7eb;
}

.btn-ghost:hover { background: #e5e7eb; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  transition: all 0.15s ease;
}

.icon-btn.view { color: #0f172a; }
.icon-btn.edit { color: #1d4ed8; }
.icon-btn.delete { color: #dc2626; }
.icon-btn.reset { color: #b45309; }

.icon-btn:hover {
  background: #eef2ff;
  border-color: #dbeafe;
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f3f4f6;
}

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  display: block;
  margin-bottom: 4px;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover { background: #eff6ff; color: #2563eb; }

.nav-link.active {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.nav-details {
  border-radius: 10px;
}

.nav-details > summary {
  list-style: none;
  cursor: pointer;
}

.nav-details > summary::-webkit-details-marker {
  display: none;
}

.nav-group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-group-link::after {
  content: '▾';
  font-size: 11px;
  color: #94a3b8;
}

.nav-details[open] > .nav-group-link::after {
  transform: rotate(180deg);
  color: #2563eb;
}

.nav-submenu {
  margin-top: 6px;
  margin-left: 10px;
  border-left: 2px solid #e5e7eb;
  padding-left: 8px;
  display: grid;
  gap: 4px;
}

.nav-sublink {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.nav-sublink:hover {
  background: #eff6ff;
  color: #2563eb;
}

.nav-sublink.active {
  background: #e0e7ff;
  color: #1d4ed8;
}

.tab-link {
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  color: #374151;
  background: #f8fafc;
  transition: all .15s ease;
}

.tab-link:hover { background: #eef2ff; color: #2563eb; border-color: #dbeafe; }

.tab-link.active {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(37,99,235,0.2);
}

.modal-overlay { z-index: 9999; display: none; }
.modal-overlay.active { display: flex; }

.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; }

@media (max-width: 768px) {
  #sidebar.active { display: block; position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; }
}
