/* Comic Style Theme - Simple & Clean */
:root.comic-theme {
  --comic-primary: #d95a2b;
  --comic-secondary: #1e4f87;
  --comic-accent: #c98a1c;
  --comic-success: #1f8f70;
  --comic-danger: #c0392b;
  --comic-warning: #d8a321;
  --comic-light: #f5f6f8;
  --comic-dark: #1f2a37;
}

body.comic-theme {
  background: #f5f6f8;
  color: #1f2a37;
  font-family: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
}

/* Navbar */
.comic-theme .navbar {
  background: linear-gradient(90deg, #d95a2b 0%, #c98a1c 100%) !important;
  border-bottom: 2px solid #1e4f87;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
}

.comic-theme .navbar-brand {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.35rem;
  letter-spacing: 0.4px;
  text-shadow: none;
}

.comic-theme .nav-link {
  color: #fff !important;
  font-weight: 600;
  transition: all 0.15s;
  text-shadow: none;
}

.comic-theme .nav-link:hover {
  background: rgba(0, 0, 0, 0.15);
}

.comic-theme .nav-link.active {
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 3px solid #fff;
  border-radius: 4px 4px 0 0;
}

/* Sidebar */
.comic-theme .sidebar {
  background: linear-gradient(180deg, #1e4f87 0%, #2a659f 100%) !important;
  border-right: 2px solid #d95a2b;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.16);
}

.comic-theme .sidebar .nav-link {
  color: #fff !important;
  border-left: 4px solid transparent;
  font-weight: 600;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.comic-theme .sidebar .nav-link:hover {
  background: rgba(217, 90, 43, 0.2);
  border-left-color: #d95a2b;
}

.comic-theme .sidebar .nav-link.active {
  background: rgba(255, 107, 53, 0.3);
  border-left-color: #FF6B35;
  font-weight: 700;
}

/* Cards */
.comic-theme .card {
  background: #fff;
  border: 2px solid #1e4f87;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
}

.comic-theme .card:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.comic-theme .card-header {
  background: linear-gradient(90deg, #1e4f87 0%, #2a659f 100%);
  border-bottom: 2px solid #d95a2b;
  color: #fff;
  font-weight: 700;
}

/* Buttons */
.comic-theme .btn-primary {
  background: #d95a2b;
  border: 2px solid #1e4f87;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: all 0.15s;
}

.comic-theme .btn-primary:hover {
  background: #c98a1c;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.22);
}

.comic-theme .btn-primary:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.24);
}

.comic-theme .btn-success {
  background: #1f8f70;
  border: 2px solid #0f5a45;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.comic-theme .btn-success:hover {
  background: #197e63;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.22);
}

.comic-theme .btn-danger {
  background: #c0392b;
  border: 2px solid #8f2a20;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.comic-theme .btn-danger:hover {
  background: #aa3125;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.22);
}

/* Forms */
.comic-theme .form-control,
.comic-theme .form-select {
  background: #fff;
  color: #1f2a37;
  border: 2px solid #1e4f87 !important;
  font-weight: 500;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.comic-theme .form-control:focus,
.comic-theme .form-select:focus {
  background: #fffdf7;
  border-color: #d95a2b !important;
  box-shadow: 0 0 0 3px rgba(217, 90, 43, 0.18);
  color: #1f2a37;
}

.comic-theme .form-label {
  font-weight: 700;
  color: #004E89;
}

/* Tables */
.comic-theme .table {
  background: #fff;
  border: 2px solid #1e4f87;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comic-theme .table-hover tbody tr:hover {
  background: #FFF9E6 !important;
  font-weight: 600;
}

.comic-theme .table thead {
  background: linear-gradient(90deg, #1e4f87 0%, #2a659f 100%);
  border-bottom: 2px solid #d95a2b;
  color: #fff;
  font-weight: 700;
}

.comic-theme .table td,
.comic-theme .table th {
  border-color: #E0E0E0;
  padding: 12px;
  vertical-align: middle;
}

.comic-theme .table td {
  color: #1B263B;
}

/* Modals */
.comic-theme .modal-content {
  background: #f5f6f8;
  border: 2px solid #1e4f87;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.comic-theme .modal-header {
  background: linear-gradient(90deg, #FF6B35 0%, #F77F00 100%);
  border-bottom: 3px solid #004E89;
  color: #fff;
}

.comic-theme .modal-title {
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* Badges */
.comic-theme .badge {
  background: #FF6B35;
  border: 2px solid #004E89;
  font-weight: 700;
  box-shadow: -2px 2px 0px rgba(0, 0, 0, 0.15);
  padding: 6px 12px;
}

.comic-theme .badge.bg-success {
  background: #06A77D !important;
}

.comic-theme .badge.bg-danger {
  background: #D62828 !important;
}

.comic-theme .badge.bg-warning {
  background: #FCBF49 !important;
  color: #1B263B !important;
}

/* Alerts */
.comic-theme .alert {
  border: 3px solid;
  font-weight: 600;
  box-shadow: -3px 3px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.comic-theme .alert-danger {
  background: #FFE0E0;
  border-color: #D62828;
  color: #8a1111;
}

.comic-theme .alert-success {
  background: #E0F7F0;
  border-color: #06A77D;
  color: #05334d;
}

.comic-theme .alert-warning {
  background: #FFF9E6;
  border-color: #FCBF49;
  color: #664D00;
}

.comic-theme .alert-info {
  background: #E0F1FF;
  border-color: #004E89;
  color: #003566;
}

/* Text utilities */
.comic-theme .text-muted {
  color: #666 !important;
  font-weight: 500;
}

.comic-theme .fw-bold {
  font-weight: 700 !important;
}

.comic-theme .small {
  font-weight: 500;
}

/* Theme Toggle Switch */
.comic-theme-toggle-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 22px;
  border: 2px solid #1e4f87;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #1f2a37;
}

.comic-toggle-switch {
  width: 50px;
  height: 26px;
  background: #E0E0E0;
  border: 2px solid #004E89;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
}

.comic-toggle-switch.active {
  background: #FF6B35;
}

.comic-toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #004E89;
  border-radius: 50%;
  top: 1px;
  left: 2px;
  transition: all 0.3s;
}

.comic-toggle-switch.active::after {
  left: 26px;
}

/* Loading */
.comic-theme .spinner-border {
  color: #FF6B35 !important;
  border-width: 4px;
  animation: spinner-comic 1s linear infinite;
}

@keyframes spinner-comic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar */
.comic-theme::-webkit-scrollbar {
  width: 12px;
}

.comic-theme::-webkit-scrollbar-track {
  background: #E0E0E0;
}

.comic-theme::-webkit-scrollbar-thumb {
  background: #FF6B35;
  border-radius: 6px;
  border: 2px solid #004E89;
}

.comic-theme::-webkit-scrollbar-thumb:hover {
  background: #F77F00;
}
