﻿/* ========================================
   Sistema de Inventario - Libreria Universitaria
   Estilo: Futurista Oscuro
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d1117;
    background-image: radial-gradient(ellipse at 15% 40%, rgba(0, 120, 255, 0.04) 0%, transparent 60%), radial-gradient(ellipse at 85% 10%, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
    color: #c8d8e8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    min-height: 100vh;
    padding: 30px 20px;
}

/* ---- Contenedor principal ---- */
.contenedor {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(13, 20, 35, 0.95);
    border: 1px solid rgba(0, 180, 255, 0.15);
    border-radius: 10px;
    padding: 35px 40px;
    box-shadow: 0 0 40px rgba(0, 140, 255, 0.06), 0 0 1px rgba(0, 212, 255, 0.2);
}

/* ---- Títulos ---- */
h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00d4ff;
    font-size: 1.4rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

/* ---- Filas de formulario ---- */
.fila-form {
    margin-bottom: 18px;
}

/* ---- Labels ---- */
label,
.lbl,
span.lbl {
    color: #7a9ab5;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* ---- TextBox e Inputs ---- */
input[type="text"],
input[type="number"],
input[type="password"],
textarea,
select {
    background: #0a1628;
    border: 1px solid #1a3a5c;
    border-radius: 5px;
    color: #c8e8ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    padding: 9px 13px;
    width: 280px;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

    input[type="text"]:focus,
    input[type="number"]:focus,
    select:focus,
    textarea:focus {
        border-color: #00d4ff;
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
    }

/* ---- DropDownList ---- */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2300d4ff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ---- Botones ---- */
input[type="submit"],
input[type="button"],
button {
    background: transparent;
    border: 1px solid #00d4ff;
    border-radius: 5px;
    color: #00d4ff;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 9px 22px;
    text-transform: uppercase;
    transition: background 0.25s, box-shadow 0.25s;
    margin-right: 10px;
}

    input[type="submit"]:hover,
    input[type="button"]:hover,
    button:hover {
        background: rgba(0, 212, 255, 0.1);
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    }

    input[type="submit"]:active,
    input[type="button"]:active,
    button:active {
        background: rgba(0, 212, 255, 0.2);
    }

/* Botón cancelar */
.btn-cancelar {
    border-color: #2a3a4a !important;
    color: #4a6a7a !important;
}

    .btn-cancelar:hover {
        background: rgba(42, 58, 74, 0.3) !important;
        box-shadow: none !important;
    }

/* ---- Mensajes al usuario ---- */
.msg-exito,
span[id*="lblMensaje"] {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ---- Validadores ---- */
span[id*="Validator"],
span[id*="validator"],
span[id*="rfv"],
span[id*="rv"] {
    color: #ff4466;
    font-size: 0.85rem;
    margin-left: 8px;
    font-family: 'Rajdhani', sans-serif;
}

/* ---- Barra de búsqueda ---- */
.barra-busqueda {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(0, 20, 45, 0.6);
    border: 1px solid rgba(0, 150, 255, 0.12);
    border-radius: 6px;
}

    .barra-busqueda input[type="text"] {
        flex: 1;
        width: auto;
    }

/* ---- GridView / Tabla ---- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    table th {
        background: rgba(0, 60, 120, 0.35);
        color: #00d4ff;
        font-family: 'Orbitron', sans-serif;
        font-size: 0.65rem;
        letter-spacing: 2px;
        padding: 11px 13px;
        text-align: left;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }

    table td {
        padding: 10px 13px;
        border-bottom: 1px solid rgba(0, 80, 140, 0.12);
        color: #8ab0c8;
        font-size: 0.95rem;
    }

    table tr:hover td {
        background: rgba(0, 100, 200, 0.07);
        color: #c0dff5;
    }

    /* Links Editar / Eliminar del GridView */
    table a {
        color: #0099dd;
        text-decoration: none;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        margin-right: 10px;
        transition: color 0.2s;
    }

        table a:hover {
            color: #00d4ff;
        }

/* ---- Links de navegación (Default.aspx) ---- */
.nav-link {
    display: block;
    color: #0099dd;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 12px 18px;
    border: 1px solid rgba(0, 150, 255, 0.18);
    border-radius: 5px;
    margin-bottom: 10px;
    width: 320px;
    transition: all 0.25s;
    text-transform: uppercase;
}

    .nav-link:hover {
        background: rgba(0, 150, 255, 0.08);
        border-color: #00d4ff;
        color: #00d4ff;
    }

/* ---- Separador ---- */
hr.separador {
    border: none;
    border-top: 1px solid rgba(0, 150, 255, 0.1);
    margin: 22px 0;
}

/* ---- CheckBox label ---- */
input[type="checkbox"] {
    accent-color: #00d4ff;
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
}

/* ---- ValidationSummary ---- */
.msg-error {
    background: rgba(255, 50, 80, 0.07);
    border: 1px solid rgba(255, 50, 80, 0.2);
    border-radius: 5px;
    color: #ff4466;
    font-size: 0.9rem;
    padding: 12px 16px;
    margin-bottom: 18px;
}

/* ---- Texto del grupo/footer ---- */
.texto-grupo {
    color: #2a3a4a;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: 10px;
}
