/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Fondo con color degradado 
 background: linear-gradient(to right, #ff353b, #ffcc37,#388dff);
 background: linear-gradient(to right,  #ff353b,#ffcc37);*/
body {
    
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Contenedor principal */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    background: #fff;
    width: 250px;
    height: 100vh;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: width 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sidebar.hidden {
    width: 100px;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar h2, .logo-container h2 {
    color: #0072ff;
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar ul {
    list-style: none;
    flex-grow: 1;
}

.sidebar ul li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar ul li a,
.menu-list li a,
.submenu-items li a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover,
.menu-list li a:hover,
.submenu-items li a:hover {
    background: #0072ff;
    color: white;
    border-radius: 5px;
    padding: 10px;
    transform: translateX(5px);
}

.sidebar.hidden ul li a span {
    display: none;
}

.sidebar.hidden .submenu-container {
    display: none;
}

/* Submenú */
.submenu-container {
    background-color: #333;
    padding: 10px;
    border-radius: 10px;
    margin-top: auto;
}

.submenu-container h3 {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.submenu-items {
    padding-left: 20px;
    list-style: none;
    display: block;
}

.submenu-items li a {
    color: #fff;
}

.submenu-items li a:hover {
    background-color: #555;
}

.submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

/* Contenido */
.content {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 20px;
    overflow-y: auto;
    height: calc(100vh - 40px);
    position: relative;
}

/* Botón de menú */
.toggle-btn {
    position: fixed;
    top: 20px;
    left: 10px;
    background: #ffcc37;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1000;
    width: auto;
}

.toggle-btn:hover {
    background: #ffcc37;
}

/* Login */
.login-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(120, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.login-container .logo {
    width: 300px;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    text-align: left;
    font-weight: bold;
    margin: 10px 0 5px;
}

input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

button {
    background: #ff353b;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

button:hover {
    background: #ffcc37;
}

.logout {
    background: red;
}

.logout:hover {
    background: darkred;
}

.error-msg {
    color: red;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Logo y responsive */
.logo {
    width: 100px;
    height: auto;
    transition: width 0.3s ease-in-out;
}

.sidebar.hidden .logo {
    margin-top: 70px;
    width: 40px;
}

@media (max-width: 400px) {
    .login-container {
        padding: 15px;
        max-width: 90%;
    }
}


    table {
        width: 100%;
        border-collapse: collapse;
    }


    th, td {
        border: 1px solid #ccc;
        padding: 2px;
    }

    th button {
        background: none;
        border: none;
        font-weight: bold;
        cursor: pointer;
        text-decoration: underline;
        color: #ffcc37;
    }
