:root {
    --primary: #F2CB34;
    --secondary: #4B1D0A;
    --accent: #FF6B6B;
    --light: #FFF9E6;
    --dark: #333333;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF0B3 100%);
    min-height: 100vh;
    color: var(--dark);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--secondary) 0%, #2A1208 100%);
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    box-shadow: var(--shadow);
    z-index: 100;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 15px 0;
    border-radius: 15px;
    transition: var(--transition);
}

.sidebar-nav li:hover {
    background: rgba(242, 203, 52, 0.1);
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(242, 203, 52, 0.3);
}

.sidebar-nav i {
    margin-right: 15px;
    font-size: 20px;
    width: 30px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 20px;
}

.main-header {
    background: white;
    border-radius: var(--radius);
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.header-left h1 {
    color: var(--secondary);
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-text {
    color: #666;
    font-size: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-explore {
    background: linear-gradient(45deg, var(--primary), #FFD166);
    color: var(--secondary);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(242, 203, 52, 0.3);
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 203, 52, 0.4);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-profile i {
    font-size: 30px;
    color: var(--primary);
}

/* Levels Grid */
.levels-section {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.levels-section h2 {
    color: var(--secondary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.level-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.level-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.level-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.level-card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 22px;
}

.level-card p {
    color: #666;
    margin-bottom: 15px;
}

.level-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.feature-card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Walkthrough Section */
.walkthrough-section {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn-view-pdf {
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-view-pdf:hover {
    background: #5A2810;
    transform: translateY(-2px);
}

.pdf-preview {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--primary);
    padding: 25px 30px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.close-modal {
    font-size: 40px;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    transform: rotate(90deg);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 30px;
}

.explore-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.explore-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(242, 203, 52, 0.2);
}

.explore-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary), #FFD166);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--secondary);
    font-size: 28px;
}

.explore-card h3 {
    color: var(--secondary);
    font-size: 18px;
}

/* Admin Styles */
.admin-container {
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--secondary);
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
}

.admin-content {
    margin-left: 250px;
    padding: 20px;
}

.admin-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--primary);
    color: var(--secondary);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.btn-admin {
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-admin:hover {
    background: #FFD166;
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 203, 52, 0.1);
}

/* Additional Demo Styles */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    background: #f0f0f0;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab.active {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(242, 203, 52, 0.3);
}

.tab-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.topic-demo {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.topic-badge {
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.topic-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.demo-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.demo-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.demo-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.demo-card h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.demo-card p {
    color: #666;
    font-size: 14px;
}

.demo-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 500;
}

.stat i {
    color: var(--primary);
    font-size: 20px;
}

.demo-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

/* Admin Styles */
.admin-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-admin.btn-sm {
    padding: 5px 15px;
    font-size: 14px;
}

.btn-admin.btn-danger {
    background: #FF6B6B;
    color: white;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.success {
    background: #06D6A0;
    color: white;
}

.alert.error {
    background: #FF6B6B;
    color: white;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/* Additional Styles for Demo */
.feature-tags {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.feature-tags span {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
}

.hero-banner {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4B1D0A;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Image-based cards */
.level-image,
.feature-image,
.explore-image,
.section-image,
.topic-image,
.content-image {
    background-size: cover;
    background-position: center;
    border-radius: 15px 15px 0 0;
}

.level-content,
.feature-content,
.explore-content,
.section-content,
.topic-content {
    padding: 20px;
}

.level-card,
.feature-card,
.explore-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.level-card:hover,
.feature-card:hover,
.explore-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 32px;
    color: #4B1D0A;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 14px;
}

/* User Profile in Sidebar */
.user-profile-sidebar {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #F2CB34;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-sidebar h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
}

.user-profile-sidebar p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.activity-content h4 {
    color: #4B1D0A;
    margin-bottom: 5px;
    font-size: 16px;
}

.activity-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* User profile in header */
.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .levels-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }
}

/* Sidebar Scrollable Fix */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--secondary) 0%, #2A1208 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 20px;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(242, 203, 52, 0.5);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 203, 52, 0.7);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1002;
    cursor: pointer;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(5px);
}

/* Admin Sidebar Scrollable Fix */
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--secondary) 0%, #2A1208 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 20px;
}

.admin-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.admin-sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(242, 203, 52, 0.5);
    border-radius: 3px;
}

.admin-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 203, 52, 0.7);
}

/* Sidebar Logo Sticky */
.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: var(--secondary);
    z-index: 2;
}

/* Sidebar Footer Sticky */
.sidebar-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: var(--secondary);
    z-index: 2;
}

/* Sidebar Navigation Scrollable */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Active sidebar for mobile */
.sidebar.active,
.admin-sidebar.active {
    transform: translateX(0);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Mobile responsive for sidebar */
@media (max-width: 1024px) {

    .sidebar,
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 300px;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .admin-content {
        margin-left: 0 !important;
    }

    .sidebar.active+.mobile-menu-overlay,
    .admin-sidebar.active+.mobile-menu-overlay {
        display: block;
    }
}

@media (max-width: 768px) {

    .sidebar,
    .admin-sidebar {
        width: 280px;
    }
}

@media (max-width: 576px) {

    .sidebar,
    .admin-sidebar {
        width: 100%;
        max-width: 320px;
    }
}

/* Collapsible Sidebar */
.sidebar.collapsed {
    width: 70px !important;
}

.sidebar.collapsed .sidebar-content {
    padding: 0 10px;
}

.sidebar.collapsed .logo h2,
.sidebar.collapsed .logo p,
.sidebar.collapsed .sidebar-nav span,
.sidebar.collapsed .user-profile-sidebar h3,
.sidebar.collapsed .user-profile-sidebar p,
.sidebar.collapsed .fullscreen-btn span,
.sidebar.collapsed .sidebar-footer p {
    display: none !important;
}

.sidebar.collapsed .profile-image:not(.mini) {
    display: none;
}

.sidebar.collapsed .profile-image.mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid #F2CB34;
}

.sidebar.collapsed .profile-image.mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar.collapsed .user-profile-sidebar {
    padding: 15px 0;
    text-align: center;
}

.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 15px 10px;
}

.sidebar.collapsed .sidebar-nav i {
    margin-right: 0;
    font-size: 20px;
}

.sidebar.collapsed .sidebar-toggle-btn {
    transform: translateX(-10px);
}

.sidebar.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

.sidebar-toggle-btn {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F2CB34;
    color: #4B1D0A;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1001;
}

.sidebar-toggle-btn:hover {
    background: #FFD166;
    transform: scale(1.1);
}

/* Fullscreen Mode */
body.fullscreen-mode {
    overflow: hidden;
}

body.fullscreen-mode .main-content {
    margin-left: 70px !important;
    padding: 0;
    width: calc(100% - 70px);
}

body.fullscreen-mode .mobile-toggle {
    display: none !important;
}

body.fullscreen-mode .sidebar {
    z-index: 1003;
}

body.fullscreen-mode .sidebar.collapsed {
    width: 70px !important;
}

body.fullscreen-mode .main-header {
    border-radius: 0;
    margin-bottom: 0;
    padding: 15px 20px;
}

body.fullscreen-mode .levels-section,
body.fullscreen-mode .walkthrough-section,
body.fullscreen-mode .quick-stats,
body.fullscreen-mode .features-grid {
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}

body.fullscreen-mode .levels-grid,
body.fullscreen-mode .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

body.fullscreen-mode .pdf-preview {
    height: calc(100vh - 150px);
}

/* Fullscreen Button */
.fullscreen-btn {
    background: rgba(242, 203, 52, 0.2);
    color: #F2CB34;
    border: 1px solid rgba(242, 203, 52, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.fullscreen-btn:hover {
    background: rgba(242, 203, 52, 0.3);
    transform: translateY(-2px);
}

.fullscreen-btn.mini {
    padding: 10px;
    width: auto;
    margin: 0 auto 15px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #06D6A0;
    color: white;
    border-left: 4px solid #04C291;
}

.notification.info {
    background: #4ECDC4;
    color: white;
    border-left: 4px solid #3DB8AF;
}

.notification i {
    font-size: 20px;
}

/* Presentation Mode Indicator */
.presentation-mode-indicator {
    position: fixed;
    top: 20px;
    left: 100px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9998;
    opacity: 0.7;
}

/* Responsive adjustments for collapsed sidebar */
@media (max-width: 1024px) {
    .sidebar:not(.active) {
        transform: translateX(-100%);
    }

    .sidebar.collapsed:not(.active) {
        transform: translateX(-100%);
        width: 70px !important;
    }

    .sidebar.active {
        transform: translateX(0);
        width: 280px !important;
    }

    .sidebar.active.collapsed {
        width: 70px !important;
    }

    body.fullscreen-mode .sidebar.active {
        width: 70px !important;
    }
}

/* Desktop hover effects for collapsed sidebar */
@media (min-width: 1025px) {
    .sidebar.collapsed:hover {
        width: 280px !important;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
    }

    .sidebar.collapsed:hover .logo h2,
    .sidebar.collapsed:hover .logo p,
    .sidebar.collapsed:hover .sidebar-nav span,
    .sidebar.collapsed:hover .user-profile-sidebar h3,
    .sidebar.collapsed:hover .user-profile-sidebar p,
    .sidebar.collapsed:hover .fullscreen-btn span,
    .sidebar.collapsed:hover .sidebar-footer p {
        display: block !important;
    }

    .sidebar.collapsed:hover .profile-image:not(.mini) {
        display: block;
    }

    .sidebar.collapsed:hover .profile-image.mini {
        display: none;
    }

    .sidebar.collapsed:hover .sidebar-nav a {
        justify-content: flex-start;
        padding: 15px 20px;
    }

    .sidebar.collapsed:hover .sidebar-nav i {
        margin-right: 15px;
    }

    .sidebar.collapsed:hover .user-profile-sidebar {
        text-align: left;
        padding: 20px;
    }

    .sidebar.collapsed:hover .sidebar-content {
        padding: 0 20px;
    }
}

/* Guide-specific styles */
.guide-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.guide-notification.success {
    border-left: 4px solid #06D6A0;
    color: #06D6A0;
}

.guide-notification.info {
    border-left: 4px solid #4ECDC4;
    color: #4ECDC4;
}

/* Modal styles for guide */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fullscreen Toggle Button */
.fullscreen-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4B1D0A;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.fullscreen-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Container */
.sidebar-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-container.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* When sidebar is hidden */
body.sidebar-hidden .main-content {
    margin-left: 0 !important;
    width: 100%;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-hidden .fullscreen-toggle {
    display: flex;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(242, 203, 52, 0.1);
    color: #F2CB34;
    border: 1px solid rgba(242, 203, 52, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    outline: none;
}

.sidebar-toggle-btn:hover {
    background: rgba(242, 203, 52, 0.2);
    transform: translateX(-5px);
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 107, 107, 0.1);
    color: rgba(255, 107, 107, 0.9);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
    text-decoration: none;
}

/* User Profile in Sidebar */
.user-profile-sidebar {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #F2CB34;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-sidebar h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
}

.user-profile-sidebar p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* Add smooth transition to main content */
.main-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
}

/* Fullscreen mode styles */
.main-content.fullscreen {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
}

/* Mobile Toggle Button */
.mobile-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4B1D0A;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
    font-size: 20px;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

/* Desktop Fullscreen Toggle Button */
.desktop-fullscreen-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4B1D0A;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
    font-size: 20px;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.desktop-fullscreen-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Container */
.sidebar-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1000;
}

.sidebar-container.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* When sidebar is hidden */
body.sidebar-hidden .main-content {
    margin-left: 0 !important;
    width: 100%;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rest of the sidebar styles remain the same... */
/* ... (keep all your existing sidebar styles) ... */
/* Mobile Toggle Button */
.mobile-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4B1D0A;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

/* Desktop Fullscreen Toggle Button */
.desktop-fullscreen-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4B1D0A;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.desktop-fullscreen-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Container */
.sidebar-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1000;
}

.sidebar-container.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* When sidebar is hidden */
body.sidebar-hidden .main-content {
    margin-left: 0 !important;
    width: 100%;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Make sure toggle buttons are above everything */
.mobile-toggle,
.desktop-fullscreen-toggle {
    z-index: 1002 !important;
}

/* Fix pointer events on mobile */
@media (max-width: 768px) {
    .mobile-toggle {
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation;
    }

    .sidebar-container:not(.hidden) {
        z-index: 1001;
    }
}

/* Mobile Toggle Button */
.mobile-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4B1D0A;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

/* Desktop Toggle Button */
.desktop-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #4B1D0A;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 1001;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.desktop-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #4B1D0A 0%, #2A1208 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

/* Sidebar Hidden State */
.sidebar.sidebar-hidden {
    transform: translateX(-100%);
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 20px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

/* When sidebar is hidden */
body.sidebar-hidden .main-content {
    margin-left: 0;
    width: 100%;
}

/* Sidebar Content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Sidebar Navigation */
.sidebar-nav ul {
    list-style: none;
    padding: 0 20px;
}

.sidebar-nav li {
    margin: 10px 0;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.sidebar-nav li:hover {
    background: rgba(242, 203, 52, 0.1);
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-nav a.active {
    background: #F2CB34;
    color: #4B1D0A;
    box-shadow: 0 4px 15px rgba(242, 203, 52, 0.3);
}

.sidebar-nav i {
    margin-right: 15px;
    font-size: 20px;
    width: 30px;
    text-align: center;
}

/* Sidebar Header */
.sidebar-header {
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* User Profile in Sidebar */
.user-profile-sidebar {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #F2CB34;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-sidebar h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
}

.user-profile-sidebar p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(242, 203, 52, 0.1);
    color: #F2CB34;
    border: 1px solid rgba(242, 203, 52, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.sidebar-toggle-btn:hover {
    background: rgba(242, 203, 52, 0.2);
    transform: translateX(-5px);
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 107, 107, 0.1);
    color: rgba(255, 107, 107, 0.9);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
    text-decoration: none;
}

/* Footer Info */
.footer-info {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 5px;
}

.footer-info .version {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

/* ===========================================
   SIDEBAR STYLES
   =========================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #4B1D0A;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 9998;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(75, 29, 10, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #F2CB34;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop Sidebar Toggle Button */
.desktop-sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #4B1D0A;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #F2CB34;
    font-size: 20px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.desktop-sidebar-toggle:hover {
    background: #5A2810;
    transform: scale(1.1);
}

/* Mobile Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Sidebar */
.main-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #4B1D0A 0%, #2A1208 100%);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.main-sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* Sidebar Header */
.sidebar-header {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-logo h2 {
    font-family: 'Fredoka One', cursive;
    color: white;
    font-size: 24px;
    margin-bottom: 5px;
}

.logo-highlight {
    color: #F2CB34;
}

.sidebar-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.close-sidebar-mobile {
    display: none;
    background: none;
    border: none;
    color: #F2CB34;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

/* User Profile */
.sidebar-user-profile {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid #F2CB34;
    box-shadow: 0 4px 15px rgba(242, 203, 52, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
}

.user-role {
    color: #F2CB34;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 214, 160, 0.1);
    color: #06D6A0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.user-status i {
    font-size: 8px;
}

/* Navigation Menu */
.sidebar-navigation {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    margin-bottom: 5px;
    padding: 0 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(242, 203, 52, 0.1);
    color: white;
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(90deg, #F2CB34 0%, #FFD166 100%);
    color: #4B1D0A;
    box-shadow: 0 4px 12px rgba(242, 203, 52, 0.3);
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-right: 15px;
    font-size: 18px;
}

.nav-link.active .nav-icon {
    background: rgba(75, 29, 10, 0.2);
    color: #4B1D0A;
}

.nav-text {
    flex: 1;
}

.nav-text span {
    display: block;
    font-weight: 500;
    font-size: 15px;
}

.nav-text small {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.nav-link.active .nav-text small {
    opacity: 0.9;
}

.admin-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar-hide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(242, 203, 52, 0.15);
    color: #F2CB34;
    border: 1px solid rgba(242, 203, 52, 0.3);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-hide-btn:hover {
    background: rgba(242, 203, 52, 0.25);
    transform: translateY(-2px);
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 107, 107, 0.15);
    color: rgba(255, 107, 107, 0.9);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-logout-btn:hover {
    background: rgba(255, 107, 107, 0.25);
    color: #FF6B6B;
}

.system-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.info-item i {
    color: #F2CB34;
    font-size: 14px;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.copyright p {
    margin-bottom: 3px;
}

.copyright small {
    font-size: 10px;
    opacity: 0.7;
}

/* Main Content Adjustment */
.main-content {
    margin-left: 280px;
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

body.sidebar-hidden .main-content {
    margin-left: 0;
    width: 100%;
}