:root {
  --primary-color: #00897b;
  --primary-dark: #00695c;
  --primary-light: #e0f7fa;
  --accent-color: #ff5722;
  --text-light: #f5f5f5;
  --text-dark: #212121;
  --bg-light: #ffffff;
  --bg-dark: #263238;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f7fa;
  color: var(--text-dark);
  overflow-x: hidden;
}

.sidebar {
  width: 280px;
  height: 100vh;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  position: fixed;
  padding: 0;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

.sidebar-header {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
  font-weight: 600;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.sidebar-header h4 i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.sidebar-menu {
  padding: 15px 0;
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 5px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar a i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.sidebar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.sidebar a.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Loading Spinner */
.spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
  vertical-align: middle;
}

.stat-card h3 {
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content {
  margin-left: 280px;
  padding: 20px;
  min-height: calc(100vh - 70px);
  transition: all 0.3s ease;
}

.header {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.user-profile {
  display: flex;
  align-items: center;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.footer {
  background-color: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 15px;
  margin-left: 280px;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 10px 10px 0 0 !important;
  padding: 15px 20px;
  font-weight: 600;
}

.table {
  border-radius: 10px;
  overflow: hidden;
}

.table thead th {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 500;
}

.table tbody tr:hover {
  background-color: rgba(0, 137, 123, 0.05);
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

#page-title {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.stat-info h3 {
  font-weight: 700;
  margin: 0;
  color: var(--primary-dark);
}

.stat-info p {
  color: #666;
  margin: 5px 0 0;
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 1001;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .content,
  .footer {
    margin-left: 0;
  }

  .menu-toggle {
    display: block !important;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
