/* MSRS custom styles */
/*body { background: #f7f9fc; }*/

body {
  background: linear-gradient(135deg, #300601 0%, #0711a0 100%, #000000 100%);
  background-attachment: fixed;
}


.brand-line {
  font-weight: 600;
  color: #0d6efd;
}

.card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.fade-in {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeIn 400ms ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-note {
  font-size: 12px;
  color: #6c757d;
}

/* Dashboard metric icon circle */
.metric-icon {
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
}

/* Elegant global background with subtle accents */
:root {
  --bg-deep-1: #0f172a;
  /* slate-900 */
  --bg-deep-2: #111827;
  /* gray-900 */
  --accent-cyan: #0ea5e9;
  /* cyan-500 */
  --accent-violet: #8b5cf6;
  /* violet-500 */
}

html,
body {
  height: 100%;
}

body {
  position: relative;
}

/* Particle canvas sits behind content */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

/* Subtle fade-in utility used across cards */
.fade-in {
  animation: fadeIn 260ms ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep cards readable on the deep background without overpowering */
.card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
}

/* --- Report Page Specifics --- */
.report-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  overflow: hidden;
}

.report-card .form-control,
.report-card .form-select {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 1rem 0.75rem;
  height: auto;
  font-size: 0.95rem;
}

.report-card .form-control:focus,
.report-card .form-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Custom Redesign Styles */
.custom-form-group {
  margin-bottom: 1.5rem;
}

.custom-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #94a3b8;
  /* Light gray labels like in the screenshot */
  font-size: 0.9rem;
}

.custom-input-group {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  background: #f1f5f9;
  /* Light grayish background for icons */
  color: #475569;
  border-right: 1px solid #e2e8f0;
}

.custom-control {
  flex: 1;
  border: none !important;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #475569;
  background: transparent;
}

.custom-control:focus {
  outline: none;
  box-shadow: none;
}

.custom-control::placeholder {
  color: #94a3b8;
}

.report-card .form-floating>label {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Custom Primary Button for Report */
.report-card .btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.report-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
  filter: brightness(1.1);
}

/* --- Sidebar Styles --- */
:root {
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --sidebar-bg: rgba(15, 23, 42, 0.8);
  --sidebar-hover: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.3s;
}

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

#sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed);
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

#sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  min-width: var(--sidebar-collapsed-width);
}

#sidebar .nav-link {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s, color 0.2s;
  border-radius: 8px;
  margin: 0.2rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background: var(--sidebar-hover);
  color: #fff;
}

#sidebar .nav-link i {
  font-size: 1.25rem;
  min-width: 24px;
}

#sidebar .link-text {
  transition: opacity var(--transition-speed);
}

#sidebar.collapsed .link-text {
  opacity: 0;
  pointer-events: none;
}

#sidebar .sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  padding: 1.5rem 1.25rem 0.5rem;
}

#sidebar.collapsed .sidebar-heading {
  display: none;
}

#main-content {
  flex: 1 1 auto;
  width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  transition: all var(--transition-speed);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  #sidebar {
    position: fixed;
    height: 100vh;
    left: calc(-1 * var(--sidebar-width));
  }

  #sidebar.show {
    left: 0;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  #sidebar.collapsed {
    left: calc(-1 * var(--sidebar-width));
  }
}

/* Submenu icon animation */
.rotate-icon {
  transform: rotate(180deg);
  transition: transform 0.3s;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hover-bg-light:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Footer & Interactivity Utilities */
.transition-all {
  transition: all 0.3s ease;
}

.hover-opacity:hover {
  opacity: 0.8;
}

.hover-white:hover {
  color: #fff !important;
}

.hover-primary:hover {
  color: var(--accent-cyan) !important;
}

.footer-center-content h5 {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Premium Header & Button Styles */
.navbar-premium {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease;
}

.navbar-brand-premium {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease;
}

.navbar-brand-premium:hover {
  transform: scale(1.05);
}

.btn-admin-login {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  border: none;
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-admin-login:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  filter: brightness(1.1);
}

.btn-admin-login i {
  transition: transform 0.3s ease;
}

.btn-admin-login:hover i {
  transform: translateX(3px);
}

/* Login Portal Specific Styles */
.login-portal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}

.login-card-premium {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.login-header {
  padding: 3rem 2.5rem 1.5rem;
  text-align: center;
}

.login-form-wrapper {
  padding: 0 2.5rem 3rem;
}

.form-floating-premium {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating-premium .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  height: auto;
  transition: all 0.3s ease;
}

.form-floating-premium .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.form-floating-premium .form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-floating-premium label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  padding-left: 0.5rem;
}

.login-btn-premium {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  border: none;
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 12px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4);
  filter: brightness(1.1);
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}