
/* =========================================================
   COLOR PALETTE CONFIGURATION
========================================================= */
:root {
  /* Main Backgrounds */
  --background-color: #fdfaf6;
  --surface-color: #ffffff;

  /* Text Colors */
  --default-color: #2b2b2b;
  --heading-color: #8b4d16;

  /* Brand Accent */
  --accent-color: #a55b1b;

  /* Contrast */
  --contrast-color: #ffffff;

  /* Main Nav & Sidebar */
  --nav-color: #3b2a1d;

  /* Hover / Active States */
  --nav-hover-color: #b56a24;

  /* Mobile Menu */
  --nav-mobile-background-color: #ffffff;

  /* Dropdown */
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #3b2a1d;
  --nav-dropdown-hover-color: #a55b1b;
}

/* =========================================================
   RESET & BASE STYLES
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* CONTAINER LAYOUT */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* =========================================================
   SIDEBAR (NAV COLOR)
========================================================= */
.sidebar {
    width: 260px;
    background-color: var(--nav-color);
    color: var(--contrast-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar-brand {
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-search {
    padding: 20px 16px;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--contrast-color);
    font-size: 0.9rem;
}

.sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.menu-item:hover {
    background-color: var(--nav-hover-color);
    color: var(--contrast-color);
}

.menu-item.active {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    font-weight: 500;
}

.menu-item .material-icons-outlined {
    font-size: 20px;
}

/* =========================================================
   NAVBAR (HEADER)
========================================================= */
.navbar {
    height: 70px;
    background-color: var(--surface-color);
    border-bottom: 1px solid rgba(139, 77, 22, 0.1); /* Subtle heading-color tint */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.toggle-btn, .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn {
    border: 1px solid rgba(139, 77, 22, 0.2);
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background-color: rgba(165, 91, 27, 0.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* =========================================================
   CARDS & BODY CONTENT
========================================================= */
.content-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: var(--surface-color);
    border: 1px solid rgba(139, 77, 22, 0.1);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(59, 42, 29, 0.04);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.placeholder-text {
    color: var(--default-color);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* AVAILABILITY STATUS ELEMENTS */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-label {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Custom Styled Toggle Switch using Accent Colors */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(59, 42, 29, 0.2);
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--surface-color);
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* =========================================================
   WHAT'S NEXT SECTION & TIMELINE
========================================================= */
.content-grid {
    display: grid;
    grid-template-columns: minmax(300px, 580px) 1fr;
    gap: 24px;
}

.whats-next-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header-title h3 {
    margin-bottom: 0;
}

.icon-circle {
    background-color: rgba(165, 91, 27, 0.1); /* Soft accent tint */
    color: var(--accent-color);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
}

/* TIMELINE BOXES (Using soft green alerts or matching theme variants) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    align-items: flex-start;
}

.timeline-item.completed {
    background-color: #f0fdf4; /* Kept standard soft success alert background */
    border: 1px solid #bbf7d0;
}

.timeline-badge {
    color: #10b981;
    display: flex;
    align-items: center;
}

.timeline-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #14532d;
}

.timeline-content p {
    font-size: 0.85rem;
    color: #166534;
    margin-top: 2px;
}

.timeline-content .highlight-text {
    font-weight: 600;
}

/* BULLET LIST (Matches thematic blue bullets from screenshot layout) */
.bullet-list {
    list-style-type: none; 
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.bullet-list li {
    font-size: 0.88rem;
    color: var(--default-color);
    opacity: 0.9;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.bullet-list li::before {
    content: "•";
    color: var(--nav-hover-color); /* Thematic replacement for bullets */
    font-size: 1.4rem;
    position: absolute;
    left: 0;
    top: -4px;
}

/* RESPONSIVE BREAKPOINT */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: absolute;
        z-index: 100;
        height: 100%;
    }
}

        /* =========================================================
   RESPONSIVE DESIGN BREAKPOINTS
========================================================= */

/* Hide mobile close button by default on Desktop */
.close-sidebar-btn {
    display: none;
    background: none;
    border: none;
    color: var(--contrast-color);
    cursor: pointer;
    opacity: 0.8;
}
.close-sidebar-btn:hover {
    opacity: 1;
}

/* 1. TABLET LAYOUT (Widths up to 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 220px; /* Slimmer sidebar for intermediate screens */
    }
}

/* 2. MOBILE LAYOUT (Widths up to 768px) */
@media (max-width: 768px) {
    .dashboard-container {
        position: relative;
    }

    /* Sidebar transforms into an off-canvas overlay drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%); /* Hidden off-screen initially */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Active state when burger menu is clicked */
    .sidebar.active {
        transform: translateX(0); 
    }

    /* Force collapsed state to behave normally if toggled on mobile */
    .sidebar.collapsed {
        width: 280px;
        transform: translateX(-100%);
    }

    /* Flex container for header logo + close action button */
    .sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Reveal the close icon toggle */
    .close-sidebar-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Layout constraints for body components stack */
    .content-grid {
        grid-template-columns: 1fr;
    }
}