/* Estilos CSS Premium para Sistema de Gestión de Agua Veredal */

/* --- FUENTES & BASES --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* --- GLASSMORPHISM LOGIN --- */
.login-bg {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos flotantes de fondo para efecto 3D */
.login-bg::before, .login-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    z-index: 1;
    pointer-events: none;
}
.login-bg::before {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation: float-bubble 15s infinite ease-in-out;
}
.login-bg::after {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: -50px;
    animation: float-bubble 12s infinite ease-in-out alternate;
}

@keyframes float-bubble {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.login-card-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    z-index: 10;
}

.login-card-glass .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.login-card-glass input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.login-card-glass input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.login-card-glass input:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

.login-card-glass .input-group-text {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-left: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 0 8px 8px 0 !important;
}

.btn-premium {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
    transition: all 0.3s ease;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 114, 255, 0.4);
    filter: brightness(1.1);
}

/* --- PREMIUM CARD COMPONENT --- */
.card-premium {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04) !important;
    overflow: hidden;
}
.card-premium .card-header-premium {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-bottom: none;
    padding: 1rem 1.25rem;
}

/* --- MICRO-ANIMACIONES --- */
.hover-scale {
    transition: all 0.25s ease-in-out;
}
.hover-scale:hover {
    transform: scale(1.02);
}

.small-box {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.small-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* --- ESTILOS DE TABLAS DE DATOS --- */
.table-premium th {
    background-color: #f8f9fa;
    border-top: none !important;
    border-bottom: 2px solid #dee2e6 !important;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.table-premium td {
    vertical-align: middle !important;
}

/* --- ETIQUETAS DE ESTADO (BADGES) --- */
.badge-custom {
    padding: 0.5em 0.8em;
    border-radius: 30px;
    font-weight: 500;
    font-size: 85%;
}

/* --- FORMULARIOS --- */
.form-control-premium {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
    transition: all 0.2s ease;
}
.form-control-premium:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.15);
}

/* --- ESTILOS DE IMPRESIÓN --- */
@media print {
    body {
        background-color: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }
    
    /* Ocultar elementos innecesarios al imprimir */
    .main-sidebar,
    .main-header,
    .main-footer,
    .btn,
    .card-footer,
    .no-print,
    .content-header,
    .breadcrumb {
        display: none !important;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
        padding: 0 !important;
        background-color: transparent !important;
    }
    
    .container-fluid {
        width: 100% !important;
        padding: 0 !important;
    }
    
    /* Ajuste de factura de corte vertical */
    .invoice-print {
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Línea de corte para recibos duplicados */
    .corte-recibo {
        border-top: 2px dashed #000;
        margin-top: 50px;
        padding-top: 50px;
        page-break-before: always;
    }
}

/* --- FACTURA EN PANTALLA --- */
.invoice-card {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}
.invoice-title {
    font-weight: 700;
    color: #1e3c72;
    letter-spacing: 0.5px;
}
.barcode-simulated {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 5px;
    background: repeating-linear-gradient(
        90deg,
        #000,
        #000 2px,
        #fff 2px,
        #fff 6px,
        #000 6px,
        #000 8px
    );
    height: 45px;
    width: 250px;
    display: inline-block;
    color: transparent;
}
