/* Murojaat Admin Dashboard - Government-style theme */
:root {
  --primary: #0d3b66;
  --primary-light: #1a5a8e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
}

body {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

/* Navbar override */
.navbar.bg-primary {
  background-color: var(--primary) !important;
}

/* Sidebar */
.sidebar {
  min-width: 220px;
  width: 220px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 1025;
    transform: translateX(-100%);
  }
  .sidebar.sidebar-mobile-open {
    transform: translateX(0);
    box-shadow: 0.25rem 0 0.5rem rgba(0,0,0,0.1);
  }
}
@media (min-width: 992px) {
  .sidebar.sidebar-mobile-open { transform: none !important; }
}

.sidebar-link {
  color: var(--gray-800);
  padding: 0.6rem 1rem;
  border-radius: 0.25rem;
  margin: 0 0.5rem;
}

.sidebar-link:hover {
  background-color: var(--gray-200);
  color: var(--primary);
}

.sidebar-link.active {
  background-color: var(--primary);
  color: white !important;
}

/* Main content area */
.main-content {
  min-width: 0;
}

/* Stats cards */
.stats-card {
  transition: transform 0.15s ease;
}

.stats-card:hover {
  transform: translateY(-2px);
}

/* Status badges */
.status-badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
}

/* Status badges — Appeal model: pending, assigned, in_progress, resolved, rejected */
.status-pending { background-color: #ffc107; color: #000; }
.status-assigned { background-color: #0d6efd; color: #fff; }
.status-in_progress { background-color: #0dcaf0; color: #000; }
.status-resolved { background-color: #198754; color: #fff; }
.status-rejected { background-color: #dc3545; color: #fff; }
.status-NEW { background-color: #0d6efd; color: white; }
.status-IN_PROGRESS { background-color: #fd7e14; color: white; }
.status-COMPLETED { background-color: #198754; color: white; }
.status-NOT_COMPLETED { background-color: #6c757d; color: white; }
.status-REJECTED { background-color: #dc3545; color: white; }

/* Login page */
.login-page .card {
  border-width: 2px;
}

/* Table responsive */
@media (max-width: 767.98px) {
  .sidebar {
    min-width: 100%;
    width: 100%;
    border-end: none !important;
    border-bottom: 1px solid var(--gray-200);
  }

  .wrapper {
    flex-direction: column !important;
  }
}

/* Mobile: collapse sidebar into top nav or toggle */
@media (max-width: 991.98px) {
  .sidebar {
    min-width: 180px;
    width: 180px;
  }
}

/* Ensure footer stays at bottom */
.min-vh-100 {
  min-height: 100vh;
}

/* Card borders - minimal */
.card {
  border-color: var(--gray-200);
}

.card-header.bg-light {
  background-color: var(--gray-100) !important;
  border-bottom: 1px solid var(--gray-200);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}
