:root {
  --cs-primary: #003366;
  --cs-secondary: #0055A4;
  --cs-gold: #C9A43A;
  --cs-neutral: #F5F6F7;
  --cs-sidebar: #003366;
  --cs-sidebar-hover: #0055A4;
  --font-family: 'Montserrat', sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--cs-neutral);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-body {
  background: linear-gradient(135deg, var(--cs-primary) 0%, var(--cs-secondary) 100%);
}

.login-card {
  border-radius: 1rem;
}

.brand-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--cs-gold) 0%, #e0b84d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-circle-lg {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--cs-gold) 0%, #e0b84d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.sidebar {
  min-width: 260px;
  max-width: 260px;
  background: var(--cs-sidebar);
  color: #fff;
  transition: all 0.3s;
  position: fixed;
  height: 100vh;
  z-index: 1040;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  background: rgba(0,0,0,0.15);
}

.components {
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.components li {
  margin: 0;
}

.components li a {
  padding: 12px 20px;
  font-size: 0.95rem;
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.components li a:hover,
.components li.active a {
  background: var(--cs-sidebar-hover);
  color: #fff;
  border-left-color: var(--cs-gold);
}

.components li a i {
  margin-right: 10px;
  font-size: 1.1rem;
  display: inline-block;
  width: 24px;
  text-align: center;
}

.components li.disabled a {
  pointer-events: none;
  opacity: 0.5;
  background: transparent !important;
  border-left-color: transparent !important;
}

.menu-header {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding: 16px 20px 4px;
  opacity: 0.7;
}

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.content {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.stat-icon {
  flex-shrink: 0;
}

.navbar {
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-family: var(--font-family);
  font-weight: 700;
}

.btn-primary {
  background-color: var(--cs-primary);
  border-color: var(--cs-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--cs-secondary) !important;
  border-color: var(--cs-secondary) !important;
}

.btn-outline-primary {
  color: var(--cs-primary);
  border-color: var(--cs-primary);
}

.btn-outline-primary:hover {
  background-color: var(--cs-primary);
  border-color: var(--cs-primary);
  color: #fff;
}

.text-primary {
  color: var(--cs-primary) !important;
}

.bg-primary {
  background-color: var(--cs-primary) !important;
}

.card {
  border-radius: 0.75rem;
}

.table thead th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6c757d;
}

.table tbody td {
  font-size: 0.9rem;
  vertical-align: middle;
}

.badge {
  font-weight: 500;
  padding: 0.4em 0.6em;
  font-size: 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cs-secondary);
  box-shadow: 0 0 0 0.25rem rgba(0, 85, 164, 0.15);
}

.input-group-text {
  border-radius: 0.5rem 0 0 0.5rem;
}

.form-control-lg,
.form-select-lg,
.btn-lg {
  border-radius: 0.5rem;
  min-height: 48px;
}

.form-label {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

@media (max-width: 767.98px) {
  .sidebar {
    margin-left: -260px;
  }
  .sidebar.active {
    margin-left: 0;
  }
  .content {
    margin-left: 0;
    width: 100%;
  }
  .content.overlay::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1035;
  }
  .btn-lg {
    min-height: 52px;
    font-size: 1rem;
  }
  .card {
    border-radius: 0.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .sidebar {
    min-width: 220px;
    max-width: 220px;
  }
  .content {
    margin-left: 220px;
    width: calc(100% - 220px);
  }
}

.alert {
  border-radius: 0.5rem;
  border: 0;
}

.fs-7 {
  font-size: 0.75rem !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
