/* 
  Fire Department Admin Dashboard Styles
  Colors:
  - Red: #e63946 (primary)
  - Blue: #1d3557 (secondary)
  - Black: #212529 (dark)
*/

:root {
  --primary: #e63946;
  --secondary: #1d3557;
  --dark: #212529;
  --light: #f8f9fa;
  --gray: #6c757d;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f8f9fa;
}

.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

/* Sidebar */
#sidebar {
  min-width: 250px;
  max-width: 250px;
  min-height: 100vh;
  transition: all 0.3s;
}

#sidebar.active {
  margin-left: -250px;
}

#sidebar .sidebar-header {
  padding: 10px;
  background: #1d3557;
}

#sidebar ul.components {
  padding: 20px 0;
}

#sidebar ul li a {
  padding: 10px 20px;
  font-size: 1.1em;
  display: block;
  color: #fff;
  text-decoration: none;
}

#sidebar ul li a:hover {
  color: #fff;
  background: #e63946;
}

#sidebar ul li.active > a {
  color: #fff;
  background: #e63946;
}

/* Content */
#content {
  width: 100%;
  min-height: 100vh;
  transition: all 0.3s;
}

/* Cards */
.card {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  font-weight: 600;
}

/* Dashboard Stats */
.stats-card {
  border-left: 4px solid var(--primary);
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stats-card-icon {
  font-size: 2rem;
  color: var(--primary);
}

.stats-card-count {
  font-size: 2rem;
  font-weight: 700;
}

.stats-card-title {
  color: var(--gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

/* Tables */
.table thead th {
  border-top: none;
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
}

.table-action-buttons .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Forms */
.form-label {
  font-weight: 600;
}

.required-field::after {
  content: "*";
  color: var(--primary);
  margin-left: 0.25rem;
}

/* Image Preview */
.image-preview {
  width: 100%;
  height: 200px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 1rem;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #f8f9fa;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  #sidebar {
    margin-left: -250px;
  }

  #sidebar.active {
    margin-left: 0;
  }

  #sidebarCollapse span {
    display: none;
  }
}
