:root {
  --main-bg-color: #f0f2f5;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --primary-color: #4a4eff; /* Vibrant Purple/Blue */
  --secondary-text: #6c757d;
  --text-color: #2c3e50;
}

body {
  background-color: var(--main-bg-color);
  background-image: radial-gradient(circle at 10% 20%, rgb(239, 246, 255) 0%, rgb(219, 228, 255) 90%);
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  color: var(--text-color);
}

#wrapper {
    overflow-x: hidden;
    min-height: 100vh;
}

#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -15rem;
  transition: margin 0.25s ease-out;
  width: 15rem;
  /* Mobile Overlay Fix */
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1050;
  background-color: white; /* Ensure it has a background */
}

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

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

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

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

@media (min-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
    /* Reset for Desktop Flow */
    position: relative;
    z-index: auto;
  }

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

  /* Toggled State for Desktop (Mini Sidebar) */
  #wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
    width: 5rem;
  }

  #wrapper.toggled .sidebar-text {
    display: none;
  }

  #wrapper.toggled .sidebar-heading {
    text-align: center;
  }
}

.cursor-pointer {
    cursor: pointer;
}

/* Glassmorphism Classes */
.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
}



.card-glossy {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
}

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

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

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

.list-group-item {
    border: none;
    padding: 15px 30px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.list-group-item:hover {
   color: var(--primary-color);
   background: rgba(255,255,255,0.5);
}

.list-group-item.active {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: bold;
    border-right: 4px solid var(--primary-color);
    border-radius: 0;
}

.stat-card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-text);
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.status-badge {
    padding: 0.5em 1em;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending { background-color: #fff3cd; color: #856404; }
.status-inprogress { background-color: #d1ecf1; color: #0c5460; }
.status-completed { background-color: #d4edda; color: #155724; }
