* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Bold', sans-serif;
    background-color: #f5f7fa;
    overflow: hidden;
}

.app-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.sidebar {
    width: 280px;
    background: #000;
    color: white;
    padding: 40px 20px;
    flex-shrink: 0;
}

.sidebar h2 {
    color: #00e5ff;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 900;
}

.user-card {
    background: #111;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #222;
}

.main-area {
    flex-grow: 1;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow-y: auto;
}

.login-box {
    text-align: center;
    width: 400px;
}

.login-box h1 {
    font-size: 45px;
    font-weight: 900;
    margin-bottom: 40px;
}

.btn-main {
    display: block;
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 18px;
    margin: 10px 0;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-main:hover {
    background: #00e5ff;
    color: black;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* MENÚS DE CUADROS */
.menu-row {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.menu-square {
    background: #1a1a1a;
    color: white;
    padding: 25px 20px;
    border-radius: 15px;
    min-width: 120px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.4s ease;
}

.menu-square:hover {
    background: #00e5ff;
    color: black;
}

.view-container {
    width: 100%;
    max-width: 700px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* TABLAS */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #1a1a1a;
    color: white;
    font-size: 13px;
}

.selector-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.input-field {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
}

.input-field:focus {
    border-color: #00e5ff;
}

#modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    background: white;
    padding: 30px;
    border-radius: 25px;
    width: 380px;
    text-align: center;
    border-top: 6px solid #00e5ff;
}

.modal-hidden {
    display: none !important;
}

.footer-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: bold;
}

.link-cyan {
    color: #00e5ff;
    cursor: pointer;
}

.link-gray {
    color: #ccc;
    cursor: pointer;
}

/* Estilo para el botón volver dentro del modal */
#modal-dinamico button:last-child {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #666;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

#modal-dinamico button:last-child:hover {
    background-color: #f0f0f0;
    color: #333;
}