/* Custom Style for Libro de Reclamaciones Digital - IA Copilot (VIPS Theme) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0a0b0d; /* Deep Dark Security Background */
    --card-bg-dark: rgba(22, 24, 28, 0.85); /* Premium Charcoal Gray Card */
    --border-dark: rgba(255, 255, 255, 0.06);
    
    --primary: #c8102e; /* VIP's Crimson Red */
    --primary-hover: #b00b25;
    --secondary: #d4af37; /* VIP's Gold/Yellow Accent */
    --accent: #d4af37;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-outfit: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-dark);
    /* Concert stage lights glow (Red & Gold) and dark security theme */
    background-image: 
        radial-gradient(at 0% 0%, rgba(200, 16, 46, 0.18) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(212, 175, 55, 0.1) 0px, transparent 40%),
        radial-gradient(at 50% 100%, rgba(200, 16, 46, 0.08) 0px, transparent 60%);
    color: var(--text-main);
    font-family: var(--font-outfit);
    min-height: 100vh;
}

/* Custom Glassmorphism Card styling */
.glass-card {
    background: var(--card-bg-dark);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(200, 16, 46, 0.3);
    box-shadow: 0 12px 40px 0 rgba(200, 16, 46, 0.06);
}

/* Custom form elements matching premium mockups */
.form-label {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background-color: rgba(10, 11, 13, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-main) !important;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(10, 11, 13, 0.95) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15) !important;
    outline: none;
}

.form-control::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

/* Badges & Indicators */
.badge-urgency-alta {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-urgency-media {
    background-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-urgency-baja {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Custom buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #a00c22);
    border: none;
    border-radius: 50px; /* Rounded pill like site buttons */
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #fff !important;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
    opacity: 0.95;
}

.btn-outline-info {
    color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.btn-outline-info:hover {
    background-color: var(--secondary) !important;
    color: #000 !important;
}

.text-info {
    color: var(--secondary) !important;
}

.bg-info {
    background-color: var(--primary) !important;
}

.text-tracking {
    letter-spacing: 1px;
}

/* Layout Specific styles */
.header-brand {
    font-weight: 800;
    color: #fff;
}

.header-accent {
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Drawing Signature Pad Styling */
.sig-canvas-container {
    border: 2px dashed rgba(212, 175, 55, 0.25);
    background: rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}
.sig-canvas-container:hover {
    border-color: var(--secondary);
}

/* Micro-animations */
.hover-scale {
    transition: var(--transition-smooth);
}
.hover-scale:hover {
    transform: scale(1.02);
}

/* Timeline/Audit */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--border-dark);
    padding-bottom: 1.5rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
}
.timeline-item:last-child {
    border-left: none;
    padding-bottom: 0;
}

/* Copilot Panel style */
.copilot-panel {
    background: rgba(200, 16, 46, 0.05);
    border: 1px dashed rgba(200, 16, 46, 0.3);
    border-radius: 12px;
}

/* Custom Table style */
.custom-table {
    color: var(--text-main);
}
.custom-table th {
    background: rgba(15, 23, 42, 0.4);
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-dark);
}
.custom-table td {
    background: transparent;
    border-bottom: 1px solid var(--border-dark);
    vertical-align: middle;
}

/* Blinking/pulsing effect for replicas */
@keyframes replicaPulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
.pulse-replica {
    animation: replicaPulse 1.5s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
.table-danger-custom {
    background-color: rgba(239, 68, 68, 0.05) !important;
    border-left: 4px solid #ef4444 !important;
}
