:root {
  --primary-color: #3498db;
  --primary-hover: #2980b9;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --sidebar-width: 250px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa;
  color: var(--text-color);
}

/* Sidebar Styles */
#sidebar-wrapper {
  min-height: 100vh;
  width: var(--sidebar-width);
  margin-left: 0;
  transition: margin 0.25s ease-out;
  background: linear-gradient(to bottom, #3498db, #2980b9);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#sidebar-wrapper .sidebar-heading {
  padding: 1.2rem 1.25rem;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.1);
}

#sidebar-wrapper .list-group {
  width: var(--sidebar-width);
}

#sidebar-wrapper .list-group-item {
  border: none;
  padding: 15px 30px;
  background-color: transparent;
  color: #fff;
  font-weight: 500;
  border-radius: 0;
  transition: all 0.3s;
  position: relative;
}

#sidebar-wrapper .list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 35px;
}

#sidebar-wrapper .list-group-item.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 4px solid #fff;
}

#sidebar-wrapper .dropdown-menu {
  margin-top: 0;
  border: none;
  border-radius: 0 0 10px 10px;
  background-color: #2c3e50;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

#sidebar-wrapper .dropdown-item {
  padding: 10px 15px;
  color: #ecf0f1;
  border-radius: 5px;
  transition: all 0.2s;
}

#sidebar-wrapper .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

/* Page Content Styles */
#page-content-wrapper {
  min-width: 100vw;
  background-color: #f8f9fa;
}

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

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

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

/* Card Styles */
.card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: white;
  padding: 1.2rem 1.5rem;
}

.welcome-card {
  transition: all 0.3s;
  margin-bottom: 1.5rem;
}

.welcome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn {
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
}

.btn-sm {
  border-radius: 8px;
  font-weight: 500;
}

/* Form Styles */
.form-control,
.form-select {
  border-radius: 10px;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
  transform: translateY(-2px);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #4a5568;
}

/* Table Styles */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e2e8f0;
  padding: 15px;
}

.table td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
}

.table tr:hover {
  background-color: #f8fafc;
}

.badge {
  padding: 0.5em 0.8em;
  font-weight: 500;
}

/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .card-title {
    font-size: 1.1rem;
  }

  .table {
    font-size: 0.9rem;
  }

  .welcome-card {
    padding: 1rem !important;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.welcome-card {
  animation: fadeIn 0.5s ease-out forwards;
}

.row > div:nth-child(1) .card {
  animation-delay: 0.1s;
}

.row > div:nth-child(2) .card {
  animation-delay: 0.2s;
}

.row > div:nth-child(3) .card {
  animation-delay: 0.3s;
}

.row > div:nth-child(4) .card {
  animation-delay: 0.4s;
}

/* Rounded corners */
.rounded-4 {
  border-radius: 15px !important;
}

.rounded-pill {
  border-radius: 50rem !important;
}

:root {
  --main-bg-color: #009d63;
  --main-text-color: #009d63;
  --second-text-color: #bbbec5;
  --second-bg-color: #c1efde;
}

.primary-text {
  color: var(--main-text-color);
}

.second-text {
  color: var(--second-text-color);
}

.primary-bg {
  background-color: var(--main-bg-color);
}

.secondary-bg {
  background-color: var(--second-bg-color);
}

.rounded-full {
  border-radius: 100%;
}

#wrapper {
  overflow-x: hidden;
  background-image: linear-gradient(to right, #f8f9fa, #f8f9fa, #f8f9fa, #f8f9fa, #f8f9fa);
}

#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -15rem;
  transition: margin 0.25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
  width: 15rem;
}

#page-content-wrapper {
  min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

#menu-toggle {
  cursor: pointer;
}

.list-group-item {
  border: none;
  padding: 20px 30px;
}

.list-group-item.active {
  background-color: transparent;
  color: var(--main-text-color);
  font-weight: bold;
  border: none;
}

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
  }

  #page-content-wrapper {
    min-width: 0;
    width: 100%;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: -15rem;
  }
}

/* Dropdown menu styles */
.dropdown-menu {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
  background-color: var(--second-bg-color);
}

/* Card styles */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

/* Table styles */
.table th {
  font-weight: 600;
}

/* Form styles */
.form-control:focus,
.form-select:focus {
  border-color: var(--main-text-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 157, 99, 0.25);
}

/* Button styles */
.btn-primary {
  background-color: var(--main-bg-color);
  border-color: var(--main-bg-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #008c59;
  border-color: #008c59;
}

/* Active sidebar item */
.list-group-item.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border-left: 4px solid white !important;
}
