/* assets/css/style.css */

:root {
  --primary-color: #0d233a; /* Deep navy blue */
  --primary-light: #1a365d;
  --secondary-color: #3b82f6;
  --accent-color: #e2e8f0;
  --text-dark: #1e293b;
  --bg-color: #f8fafc;
  --sidebar-width: 250px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
}

.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

/* Mobile toggle */
@media (max-width: 992px) {
  .sidebar { left: calc(-1 * var(--sidebar-width)); }
  .sidebar.show { left: 0; }
  .main-content { margin-left: 0; }
}

.sidebar-header {
  background-color: #ffffff;
}

.list-group-item {
  border: none;
  padding: 0.6rem 1rem;
  margin-bottom: 0.2rem;
  color: #475569;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.list-group-item:hover, .list-group-item:focus {
  background-color: #f1f5f9;
  color: var(--primary-color);
}

.list-group-item.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(13, 35, 58, 0.2);
}

/* Custom Card Heights & Shadows */
.card-stats {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #fff;
}
.card-stats:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Login Page specific */
.login-bg {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Tables */
.table-hover tbody tr:hover {
  background-color: #f8fafc;
}
.table th {
  font-weight: 600;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}
