﻿/* ✅ Sidebar Default */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #222;
    color: white;
    padding-top: 20px;
    transition: all 0.3s ease-in-out;
    overflow-x: hidden;
}

    /* ✅ Sidebar Collapsed */
    .sidebar.sidebar-collapsed {
        width: 0px;
        overflow: hidden;
    }

/* ✅ Main Content Adjustments */
.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s;
    padding: 20px;
    min-height: 100vh;
}

.expanded {
    margin-left: 0px;
}

/* ✅ Mobile View Adjustments */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 0px;
    }

        .sidebar.sidebar-collapsed {
            width: 0px;
        }

    .main-content {
        margin-left: 0px;
    }

    .expanded {
        margin-left: 0px;
    }
}

/* ✅ Sidebar Toggle Button (☰) */
.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent !important;
    color: black;
    border: none;
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 1000;
    border-radius: 5px;
}

    .sidebar-toggle:hover {
        background: #ffffff;
    }

/* ✅ Ensure Sidebar Buttons Exactly Match Dark Mode Button */
.button-style {
    background: #6b5100 !important; /* Exact match to dark mode button */
    color: white !important;
    border: 2px solid #a68200 !important; /* Exact border */
    font-size: 16px !important;
    padding: 10px 16px !important; /* Matching padding */
    cursor: pointer !important;
    display: inline-block !important;
    border-radius: 12px !important; /* Exact rounded shape */
    text-align: center !important;
    transition: all 0.3s ease-in-out !important;
    text-decoration: none !important;
}

    .button-style:hover {
        background: #8f6b00 !important; /* Same hover effect as dark mode */
        border-color: #d4a900 !important;
    }

/* ✅ Remove bullet points from the sidebar navigation */
.sidebar-nav {
    list-style-type: none !important;
    padding-left: 0 !important;
}

/* ✅ Sidebar Buttons Match Dark Mode Button */
.sidebar-nav a {
    display: block;
    margin: 5px 10px;
    text-decoration: none !important;
}

.sidebar-header {
    text-align: center;
    padding: 15px 0;
    margin-bottom: 10px; /* Adjust the space as needed */
}

.sidebar-footer {
    text-align: center;
    padding: 15px 0;
}

/* ✅ Remove underline from sidebar buttons */
.button-style,
.dark-mode-toggle,
.sidebar-nav a {
    text-decoration: none !important;
}
