/* --- Estilos Generales y Fondo Oscuro --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #181b20; /* Fondo general oscuro elegante */
    color: #e4e6eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    height: 100vh;
}

/* Ocultar la barra de desplazamiento vertical global */
html, body {
    scrollbar-width: none; /* Para Firefox */
    -ms-overflow-style: none; /* Para IE y Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Para Chrome, Safari y Opera */
}

/* --- Contenedores y Secciones --- */
.contenido {
    background: #181b20; 
    height: 87vh;
    align-items: center;
    justify-content: center;
}

.contenido1 {
    background-color: #2b3b55; /* Tono acorde al menú lateral */
    height: 87vh;
    align-items: center;
    justify-content: center;
}

.contenido2 {
    background-color: #1e222a; 
    background-repeat: no-repeat;
    background-size: 75% 90%;
    background-position-x: center;
    background-position-y: center;
    height: 87vh;
    align-items: center;
    justify-content: center;
    padding: 10px; 
}

.POS0 { background-image: url("../image/POS0.jpg"); }
.POS1 { background-image: url("../image/POS1.jpg"); }
.POS2 { background-image: url("../image/POS2.jpg"); }
.POS3 { background-image: url("../image/POS3.jpg"); }
.POS4 { background-image: url("../image/POS4.jpg"); }
.POS5 { background-image: url("../image/POS5.jpg"); }
.POS6 { background-image: url("../image/POS6.jpg"); }
.POS7 { background-image: url("../image/POS7.jpg"); }

.dashBoard {
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 90% 90%;
    background-position-x: center;
    background-position-y: center;
    height: 87vh;
    align-items: center;
    justify-content: center;
    padding: 10px; 
}

.contenido3 {
    background-color: #2b3b55;
    background-position-x: center;
    height: 84vh;
    justify-content: center; 
    margin-top: 5%;
    border-radius: 15px;
}

.commandButton {
    background-color: #2b3b55;
    background-position-x: center;
    background-repeat: no-repeat;
    width: 80%;
    height: 30%;
    align-items: center;
    justify-content: center;
    padding: 0px; 
}

.img-container {
    text-align: center;
}

.texto001 {
    color: white;
    font-weight: bold;
    text-align: center;
}

/* --- Login --- */
.login {
    width: 360px;
    height: min-content;
    padding: 20px;
    border-radius: 12px;
    background: #22262e;
    color: #e4e6eb;
    border: 1px solid #2d323b;
}

.login h1 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #ffffff;
}

.login form {
    font-size: 20px;
}

.login form .form-group {
    margin-bottom: 12px;
}

.login form input[type="submit"] {
    font-size: 20px;
    margin-top: 15px;
}

/* --- Panel Principal y Tarjetas (Cards) --- */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 5px;
    align-items: end;
    justify-content: end;
}

.main-content {
    flex: 1; 
    overflow-y: auto;
    background: #1e222a;
    margin: 3%;
    margin-left: 10%;
    margin-right: 6%;
    height: 92%;
    width: 80%;
    align-items: center;
    justify-content: center;
    border: 1px solid #2d323b;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

    /* Ocultar la barra de desplazamiento en el contenedor central */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
}

/* Ocultar barra de desplazamiento en Chrome, Safari y Opera para .main-content */
.main-content::-webkit-scrollbar {
    display: none;
}

.content-header {
    background: #1e222a;
    padding: 20px 30px;
    border-bottom: 1px solid #2d323b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.content-header h2 { 
    color: #60a5fa; 
    font-size: 1.5rem; 
    font-weight: 600; 
}

.content-body { 
    padding: 30px; 
    font-size: 15px; 
}

.tab-content { 
    display: none; 
    animation: fadeIn 0.3s ease; 
}

.tab-content.active { 
    display: block; 
}

.card {
    background: #252a34; /* Fondo de tarjetas más oscuro y contrastado */
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #333b48;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

.card-header {
    padding: 20px;
    background: #1e222a;
    border-bottom: 1px solid #333b48;
    font-weight: 700;
    color: #60a5fa;
}

.card-body { 
    padding: 25px; 
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mi-boton-Menu-Vertical {
    color: white;
    border-radius: 10px; 
}

.mi-boton-Menu-Vertical:hover { 
    background-color: #1d4ed8; 
    color: yellow; 
    border-radius: 10px;
}

/* --- Menú de Navegación --- */
nav {
    max-width: 900px;
    margin: auto;
    margin-left: 0%;
    background-color: #181b20;
    color: #ffffff;
    font-size: 20px;
    margin-top: 2px;
    margin-bottom: 0px;
    border-bottom: 1px solid #2d323b;
}

.menu-horizontal {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.menu-horizontal > li > a {
    display: block;
    padding: 15px 20px;
    color: #e4e6eb;
    text-decoration: none;
}

#version {
    display: block;
    padding: 15px 20px;
    color: #e4e6eb;
    text-decoration: none;
}

.menu-horizontal > li:hover {
    background-color: #1d4ed8;
    color: white;
}

.menu-vertical {
    position: absolute;
    display: none;
    list-style: none;
    width: 500px;
    z-index: 10;
    background-color: rgba(30, 34, 42, 0.95);
    border: 1px solid #333b48;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.menu-horizontal li:hover .menu-vertical {
    display: block;
}

.menu-vertical li:hover {
    background-color: #111418;
    margin-left: 2px;
}

.menu-vertical li a {
    display: block;
    color: white;
    text-decoration: none;
    width: 500px;
    font-size: 17px;
    padding: 5px 5px 5px 2px;
    margin-right: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.menu-literal, .menu-literal-top, .menu-literal-bottom {
    margin-right: 35px;
    border-radius: 5px;
    padding: 0px 0px 0px 10px;
}
.menu-literal-top { margin-top: 4px; }
.menu-literal-bottom { margin-bottom: 4px; margin-top: 2px; }

.btn-custom {
    background-color: #0ea5e9;
    color: white;
    height: 65px;
    border-radius: 0px;
    border: none;
}

.btn-custom:hover {
    background-color: #0284c7;
    color: white;
    cursor: pointer;
}

.borde-izq { border-radius: 10px 0px 0px 10px; }
.borde-der { border-radius: 0px 10px 10px 0px; }

/* --- Barra de Navegación Superior y Sidebar General --- */
.navbar, header {
    background-color: #181b20;
    border-bottom: 1px solid #2d323b;
    color: #ffffff;
}

.sidebar, .menu-lateral {
    background-color: #2b3b55;
    border-right: 1px solid #2d323b;
    color: #ffffff;
}

/* --- Botones Principales y Secundarios --- */
.btn-primary, button.actualizar {
    background-color: #1d4ed8;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    box-shadow: 0 0 10px rgba(29, 78, 216, 0.4);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: #f3f4f6;
    border-radius: 6px;
}

.btn-secondary:hover {
    background-color: #4b5563;
}