/* General Body & Font Styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    margin: 0;
    padding: 1rem;
}

/* Main Container - This creates the two-column grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Default to a single column for mobile */
    gap: 2rem;
}

/* --- Header --- */
header {
    /* This makes the header span the full width of the grid */
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}
header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #11182c;
}

/* --- Main Content Column --- */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-box {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.content-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}

#daily-dispatch h3 { /* The catchphrase */
    font-size: 1.1rem;
    color: #4b5563;
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
#daily-dispatch p {
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-wrap;
}


/* --- Sidebar (Navigation) --- */
.sidebar nav h2 {
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar nav ul li { margin-bottom: 0.75rem; }
.sidebar nav ul li a { color: #3b82f6; text-decoration: none; font-weight: 500; }
.sidebar nav ul li a:hover { text-decoration: underline; }
.sidebar .coming-soon { color: #9ca3af; font-style: italic; pointer-events: none; }
.sidebar .mt-6 { margin-top: 1.5rem; }

/* --- Responsive Breakpoint --- */
@media (min-width: 768px) {
    body { padding: 2rem; }
    .container {
        grid-template-columns: 2.33fr 1fr; /* 70/30 split */
    }
}
/* ============================================= */
/* PROJECT CARD STYLES                 */
/* ============================================= */

/* --- The Card Container --- */
.project-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb; /* Light grey border */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease-in-out;
}

.project-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Card Content --- */
.project-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937; /* Darker grey for title */
}

/* **UPDATED** - Smaller font size for the description */
.project-card .project-description {
    font-size: 0.9rem; /* Smaller than the default */
    color: #4b5563; /* Medium grey for readability */
    line-height: 1.6;
    margin-top: 12px;
    margin-bottom: 0;
}

/* --- Status Label Styling --- */
.project-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px; /* Pill shape */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* **UPDATED** - Specific colors for each status */
.project-status.in-progress {
    background-color: #f97316; /* Orange */
    color: #ffffff;
}

.project-status.pending {
    background-color: #6b7280; /* Grey */
    color: #ffffff;
}

.project-status.completed {
    background-color: #22c55e; /* Green */
    color: #ffffff;
}

/* Fallback for any other statuses */
.project-status {
    background-color: #d1d5db; /* Light grey */
    color: #1f2937;
}
/* ============================================= */
/* PROJECT CARD & GRID STYLES                    */
/* ============================================= */

/* --- The Grid Container --- */
/* This makes the project boards responsive grids */
#project-board,
#completed-projects {
    display: grid;
    /* Create as many 300px columns as can fit, and let them grow to fill the space */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px; /* Space between cards */
}

/* --- Section Title --- */
/* Ensures the "Completed Projects" title spans the full grid width */
.grid-span-full {
    grid-column: 1 / -1; /* Span from the first to the last column line */
}


/* --- The Card Container --- */
.project-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- Card Header (Always Visible) --- */
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align to top */
    gap: 12px;
}

.project-card-info h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

/* --- Expand Button --- */
.expand-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.3s ease;
}

.expand-btn:hover {
    background-color: #f3f4f6; /* Light grey on hover */
}

.expand-btn svg {
    display: block; /* Removes tiny space below SVG */
    transition: transform 0.3s ease-out;
}

/* --- Card Body (Collapsible) --- */
.project-card-body {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.project-description {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0; /* Remove default margins */
    padding-top: 16px; /* Add space when it expands */
    border-top: 1px solid #f3f4f6;
    margin-top: 12px;
}

/* --- Expanded State --- */
.project-card.is-expanded .project-card-body {
    max-height: 400px; /* Animate to this height. Adjust if descriptions are longer. */
    transition: max-height 0.4s ease-in;
}

.project-card.is-expanded .expand-btn svg {
    transform: rotate(180deg); /* Flip the arrow icon */
}


/* --- Status Label Styling (Unchanged) --- */
.project-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.project-status.in-progress { background-color: #f97316; color: #ffffff; }
.project-status.pending { background-color: #6b7280; color: #ffffff; }
.project-status.completed { background-color: #22c55e; color: #ffffff; }
.project-status { background-color: #d1d5db; color: #1f2937; }





