/* SIDEBAR */
.sidebar {
    position: fixed;
    width: 180px;
    background-color: #EDE8D5;
    padding: 0px 20px 20px 20px;
    height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
}

    .sidebar .logo img {
        width: 70%;
        margin-bottom: 0px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .nav-links li {
        margin-bottom: 15px;
    }

    .nav-links a {
        text-decoration: none;
        gap: 10px;
        color: #2e1d0e;
        font-weight: bold;
        display: flex;
        align-items: center;
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

        .nav-links a:hover {
            background-color: #D6CDBB;
            color: #5c3b24;
            transform: scale(1.03);
        }

        .nav-links a.active {
            background-color: #5c3b24;
            color: white;
        }

    .nav-links i {
        font-size: 18px;
        width: 20px;
        text-align: center;
    }

/* MODAL LOGOUT */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #F5F1E3;
    margin: 8% auto;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    color: black;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}


.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

    .modal-buttons button,
    .modal-buttons .confirm-logout {
        padding: 10px 20px;
        border: none;
        background-color: #5c3b24;
        color: white;
        border-radius: 5px;
        cursor: pointer;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

        .modal-buttons button:hover,
        .modal-buttons .confirm-logout:hover {
            background-color: #7a3e2c;
        }

/* RESPONSIVE SIDEBAR */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        transform: none;
        padding: 30px 20px 20px 20px;
        box-sizing: border-box;
        background-color: #EDE8D5;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

        .nav-links li {
            margin: 0;
            width: 100%;
        }

        .nav-links a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 15px;
            background-color: #fff3e0;
            border-radius: 5px;
            font-size: 14px;
            text-align: left;
            color: #2e1d0e;
            font-weight: bold;
        }

        .nav-links i {
            width: 20px;
            text-align: center;
            font-size: 16px;
        }
}

/* HTML and Body Settings */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Focus States for Inputs and Buttons */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
