/* CSS variables for easy theming */
:root {
    --primary-bg: #f4f7fa;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --sidebar-active-bg: var(--primary-color);
    --main-text: #34495e;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease-in-out;
}

.sidebar-header {
    font-size: 2.2rem;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--sidebar-active-bg);
}

.sidebar-header h2 {
    margin: 0;
    font-weight: 600;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    padding: 1rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    font-weight: 500;
}

.sidebar-nav li a:hover {
    background-color: var(--sidebar-active-bg);
    padding-left: 1.8rem;
}

.sidebar-nav li a.active {
    background-color: var(--sidebar-active-bg);
    font-weight: 700;
}

/* Main Content Styles */
.main-content {
    font-size: 1.6rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    z-index: 10;
}

.main-header h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 600;
}



.menu-toggle {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    margin-right: 1rem;
    color: var(--main-text);
}

.content-section {
    display: none;
    /* Hide by default */
    padding: 2rem;
    overflow-y: auto;
}

.content-section.active {
    display: block;
    /* Show active section */
}

.content-section h1 {
    margin-bottom: 1rem;
}

.content-section p {
    line-height: 1.6;
}

.text-truncate-2-lines {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Table Styles */

.success-pill{
    background-color: #2ecc71;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
}
.warning-pill{
    background-color: #f39c12;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: 4px 0 15px var(--shadow-color);
    }
    .sidebar-header{
        font-size: 1.8rem;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .menu-toggle {
        display: block;
        /* Show hamburger on mobile */
    }

    .main-header h1 {
        font-size: 2.2rem;
    }
}