/* ===== VARIABLES ===== */
:root {
  --primary-color: #1a5f7a;
  --secondary-color: #159895;
  --dark-color: #002b5b;
  --success-color: #28a745;
  --warning-color: #fd7e14;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-text: #333;
  --light-text: #6c757d;
  --border-color: #dee2e6;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--light-color);
}

/* ===== SIDEBAR STYLES ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: linear-gradient(
    180deg,
    var(--primary-color) 0%,
    var(--dark-color) 100%
  );
  padding: 20px 0;
  z-index: 1001;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  padding: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-brand img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
}

.user-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: normal;
  font-size: 12px;
  opacity: 0.9;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 5px 10px;
}

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateX(5px);
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-left: 3px solid var(--secondary-color);
}

.sidebar-nav a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.logout-btn {
  background: var(--danger-color) !important;
  color: white !important;
  margin-top: 20px !important;
}

.logout-btn:hover {
  background: #c82333 !important;
  transform: translateX(5px) !important;
}

.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 220px;
  padding: 20px;
  min-height: 100vh;
}

/* ===== PRINT STYLES ===== */
@media print {
  .sidebar,
  .print-btn {
    display: none !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    background: white !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin: 0;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 1rem;
}
.p-4 {
  padding: 1.5rem;
}
.p-5 {
  padding: 3rem;
}
