﻿:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --text-color: #2d3748;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: #f5f7fa;
    line-height: 1.6;
}

/* ===== Header Modern Design ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.85);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

    .logo:hover {
        transform: translateY(-2px);
    }

    .logo img {
        height: 50px;
        width: auto;
        transition: var(--transition);
    }

    .logo h2 {
        font-size: 1.5rem;
        color: var(--text-color);
        font-weight: 700;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

/* ===== Modern Sidebar ===== */
.sidebar {
    position: fixed;
    top: 80px;
    right: 0;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 999;
}




    .sidebar-btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

    .sidebar-btn:active {
        transform: translateY(0);
    }

/* ===== Main Content Area ===== */
.content {
    margin: 6rem 1.5rem 2rem;
    transition: var(--transition);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .content {
        margin-right: 240px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1.5rem;
    }

    .logo img {
        height: 40px;
    }

    .logo h2 {
        font-size: 1.3rem;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        padding: 1rem;
        top: auto;
        margin-top: 80px;
    }

    .sidebar-btn {
        margin: 0;
        flex: 1 1 calc(50% - 1rem);
        min-width: 160px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .content {
        margin: 1.5rem;
        margin-top: 100px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.6rem 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

        .logo img {
            height: 36px;
        }

        .logo h2 {
            font-size: 1.1rem;
        }

    .sidebar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sidebar-btn {
        flex: 1 1 100%;
        min-width: 100%;
        font-size: 0.85rem;
    }

    .content {
        margin: 1rem;
        margin-top: 90px;
    }
}

/* ===== Animation Effects ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    animation: fadeIn 0.5s ease-out;
}

/* ===== Smart Features ===== */
/* Hide sidebar on mobile when not needed */
.sidebar.collapsible {
    transform: translateX(100%);
}

    .sidebar.collapsible.active {
        transform: translateX(0);
    }

/* Add toggle button for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar.collapsible {
        position: fixed;
        top: 70px;
        right: 0;
        height: calc(100vh - 70px);
        transform: translateX(100%);
    }

        .sidebar.collapsible.active {
            transform: translateX(0);
        }
}
