﻿body {
    background-color: #f4f4f9;
}

.language-selector {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
}

.sidebar {
    min-height: 100vh;
    width: 300px;
    background-color: #212529;
    padding: 20px;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
}

.sidebar h4 {
    text-align: center;
    color: #ffc107;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    background-color: #ffc107;
    color: #212529;
    border-radius: 5px;
}

.sidebar .nav-link.active {
    background-color: #ffc107;
    color: #212529;
}

.content {
    margin-left: 320px;
    padding: 20px;
}

.btn-custom {
    background-color: #ffc107;
    color: #212529;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 10px;
}

.btn-custom:hover {
    background-color: #e0a800;
    color: #fff;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .sidebar {
        left: -300px;
    }

    .sidebar.show {
        left: 0;
        background-color: #2125294f;
        width: 200px;
        transition: all 0.3s ease-in-out;
    }

    .sidebar.show:hover {
        width: 300px; /* Se extinde la 300px la hover */
        background-color: #212529; /* Fundal complet opac la hover */
    }

    .content {
        margin-left: 0;
    }

    .btn-toggle-sidebar {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1040;
        background-color: #ffc107;
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
    }
}

@media (min-width: 769px) {
    .btn-toggle-sidebar {
        display: none;
    }

    .sidebar {
        left: 0;
    }
    
    .content {
        margin-left: 320px;
    }
}