/* =====================================
   BUJIA NEGRA GARAGE SYSTEM - GLOBAL
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#0a0a0a;
    color:#ffffff;
}

/* ======================
   MENU LATERAL
====================== */

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:250px;
    height:100vh;
    background:#111827;
    border-right:3px solid #0066ff;
    overflow:auto;
    z-index: 100;
}

.logo{
    text-align:center;
    padding:25px 10px;
    border-bottom:1px solid #1f2937;
}

.logo h2{
    color:#00a3ff;
    margin-bottom:5px;
}

.logo p{
    font-size:12px;
    color:#9ca3af;
}

.menu{
    padding:15px;
}

.menu a{
    display:block;
    padding:12px;
    margin-bottom:8px;
    background:#1f2937;
    color:white;
    text-decoration:none;
    border-radius:8px;
    transition:0.3s;
}

.menu a:hover{
    background:#0066ff;
}

/* ======================
   CONTENIDO PRINCIPAL
====================== */

.main{
    margin-left:250px;
    padding:20px;
    min-height: 100vh;
}

.header{
    background:#111827;
    padding:20px;
    border-radius:12px;
    margin-bottom:20px;
    border-left:5px solid #0066ff;
    border-top: 1px solid #1f2937;
    border-right: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

.header h1{
    color:#00a3ff;
}

.header p{
    color:#9ca3af;
}

/* ======================
   TARJETAS DE MÉTRICAS
====================== */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
}

.card{
    background:#111827;
    padding:20px;
    border-radius:12px;
    border-left:4px solid #0066ff;
    box-shadow:0 0 15px rgba(0,102,255,0.15);
    border-top: 1px solid #1f2937;
    border-right: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

.card h3{
    color:#9ca3af;
    margin-bottom:10px;
}

.card h2{
    color:#00a3ff;
}

/* ======================
   TABLAS GLOBALES
====================== */

table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    background:#111827;
    border-radius:10px;
    overflow:hidden;
    border: 1px solid #1f2937;
}

th{
    background:#0066ff;
    color:white;
    padding:12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td{
    padding:12px;
    border-bottom:1px solid #1f2937;
    text-align:center;
    font-size: 14px;
    color: #e5e7eb;
}

tr:hover{
    background:#1f2937;
}

/* ======================
   BOTONES ENLACE
====================== */

.btn{
    display:inline-block;
    background:#0066ff;
    color:white;
    padding:10px 15px;
    text-decoration:none;
    border-radius:8px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover{
    background:#0050cc;
}

/* ======================
   INPUTS Y FORMULARIOS
====================== */

input,
select {
    width:100%;
    padding:11px;
    margin-top:5px;
    margin-bottom:10px;
    border:1px solid #374151;
    border-radius:8px;
    background:#1f2937;
    color:white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    border-color: #0066ff;
}

button{
    background:#0066ff;
    color:white;
    border:none;
    padding:11px 20px;
    border-radius:8px;
    cursor:pointer;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

button:hover{
    background:#0050cc;
}

/* ======================
   CONTENEDORES DE GRÁFICOS
====================== */

canvas{
    background:#111827;
    margin-top:20px;
    border-radius:12px;
    padding:15px;
    border: 1px solid #1f2937;
}

/* ======================
   PANTALLA DE LOGIN
====================== */

.login-container {
    max-width: 400px;
    width: 90%;
    margin: 12vh auto;
    background: #111827;
    padding: 35px 30px;
    border-radius: 16px;
    border: 1px solid #1f2937;
    border-top: 5px solid #0066ff;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
    text-align: center;
}

.login-logo {
    max-width: 140px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
    display: block;
    object-fit: contain;
}

.login-container h1 {
    color: #00a3ff;
    font-size: 24px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.login-container h2 {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 25px;
    font-weight: normal;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 13px;
    color: #9ca3af;
    display: block;
    margin-bottom: 5px;
}

.btn-login {
    width: 100%;
    background: #0066ff;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: #0050cc;
}

.error-box {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 12px !important;
    margin-bottom: 20px !important;
    border-radius: 8px !important;
    font-size: 14px;
    text-align: left;
}

/* ======================
   RESPONSIVE DESIGN (CELULARES)
====================== */

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 3px solid #0066ff;
    }
    .logo {
        padding: 15px;
    }
    .menu {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding: 10px;
    }
    .menu a {
        flex: 1 1 45%;
        margin-bottom: 0;
        text-align: center;
        padding: 8px;
        font-size: 13px;
    }
    .main {
        margin-left: 0;
        padding: 15px;
    }
}
