/* public/css/custom.css */
/* Sistema de Estilo Premium - Red Sun Farms Gas Natural Dashboard */

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

:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(56, 189, 248, 0.2);
    
    /* Paleta Red Sun Farms */
    --rs-dark-blue: #0f172a;
    --rs-green: #10b981;
    --rs-red: #ef4444;
    --rs-yellow: #f59e0b;
    --rs-teal: #06b6d4;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.03) 0%, transparent 45%);
}

/* Fondo de cuadrícula fina */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(56, 189, 248, 0.06);
}

/* Semáforos dinámicos en bordes de tarjetas */
.border-danger-glow {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.border-warning-glow {
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.border-success-glow {
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

/* Tipografía de Dashboard */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.font-mono {
    font-family: var(--font-mono);
}

.text-muted-custom {
    color: var(--text-secondary);
}

/* KPIs Layout */
.kpi-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.kpi-val {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.2;
}

/* Header de Red Sun Farms */
header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.logo-rs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 36px;
    height: 32px;
    background: url('../images/logo.png') no-repeat left center;
    background-size: auto 100%;
}

/* Tablas */
.table-custom {
    color: var(--text-primary);
}

.table-custom th {
    background-color: rgba(15, 23, 42, 0.4);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
}

.table-custom td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    vertical-align: middle;
}

.table-custom tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
    color: #fff;
}

/* Modales personalizados */
.modal-content-custom {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
}

.modal-header-custom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer-custom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-control-custom {
    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
}

.form-control-custom:focus {
    border-color: var(--rs-teal) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15) !important;
}

/* Botones Premium */
.btn-premium {
    background: linear-gradient(135deg, var(--rs-green) 0%, #059669 100%);
    border: none;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 18px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #fff;
}

.btn-premium-red {
    background: linear-gradient(135deg, var(--rs-red) 0%, #b91c1c 100%);
    border: none;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 18px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-premium-red:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
    background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%);
    color: #fff;
}

.btn-outline-custom {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text-primary);
    border-radius: 8px;
    padding: 7px 16px;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Login Layout */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

/* Badges de Roles y Estado de Usuario */
.badge-ceo {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-admin {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #22d3ee !important;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-finance {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-viewer {
    background-color: rgba(148, 163, 184, 0.15) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.badge-active {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-inactive {
    background-color: rgba(100, 116, 139, 0.15) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

