/* ===== 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: 200px;
  padding: 20px 30px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  width: calc(100% - 200px);
}

.print-container {
  background: white;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  min-height: calc(100vh - 40px);
  max-width: 100%;
}

/* ===== PRINT BUTTON ===== */
.print-btn {
  position: fixed;
  top: 25px;
  right: 30px;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.print-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

.print-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.print-btn i {
  margin-right: 8px;
  font-size: 16px;
}

/* ===== 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;
}
