:root {
    --primary: #4B0082;
    --accent: #8F00FF;
    --bg: #E6E6E6;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --border: #DDDDDD;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
}

.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

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

.sidebar {
    width: 250px;
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    flex-shrink: 0;
}

.sidebar a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: var(--radius);
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-live {
    background: #e3fcef;
    color: #00875a;
}

.badge-selection {
    background: #fff0b3;
    color: #172b4d;
}

.badge-closed {
    background: #dfe1e6;
    color: #42526e;
}

.hidden {
    display: none;
}

/* Mobile Responsive Styles */
/* Mobile Responsive Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .dashboard-layout {
        display: block !important;
        /* Force block layout */
        position: relative;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .sidebar {
        display: block !important;
        position: fixed !important;
        top: 0;
        left: -260px !important;
        /* Completely off-screen */
        height: 100vh;
        width: 250px !important;
        z-index: 9999 !important;
        transition: left 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        background: var(--primary);
        /* Ensure background is set */
    }

    .sidebar.active {
        left: 0 !important;
    }

    .main-content {
        width: 100% !important;
        padding: 20px !important;
        padding-top: 80px !important;
        /* Increased space for button */
        margin: 0 !important;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mobile-menu-btn {
        display: block !important;
        position: fixed !important;
        top: 20px;
        left: 20px;
        z-index: 10000 !important;
        background: var(--primary);
        color: white;
        border: none;
        padding: 12px 18px;
        /* Larger touch target */
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        /* Stronger shadow */
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998 !important;
    }

    .sidebar-overlay.active {
        display: block !important;
    }
}

.mobile-menu-btn {
    display: none;
}