/* Panel de Control - Alerta Bomberos */
/* Estilo Dark Profesional con Toques Rojos - Central de Bomberos */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores base oscuros */
    --bg-primary: #0a0e14;
    --bg-secondary: #141820;
    --bg-tertiary: #1e2430;
    --bg-hover: #2a3140;
    --bg-card: #1a1f2a;
    
    /* Texto */
    --text-primary: #e8eaed;
    --text-secondary: #b0b4b8;
    --text-muted: #7a7e82;
    
    /* Acentos rojos (bomberos) */
    --red-primary: #dc2626;
    --red-hover: #ef4444;
    --red-dark: #b91c1c;
    --red-glow: rgba(220, 38, 38, 0.3);
    --red-light: rgba(220, 38, 38, 0.1);
    
    /* Acentos secundarios */
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-orange: #f97316;
    
    /* Estados */
    --success: #10b981;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Bordes y sombras */
    --border-color: #2d3440;
    --border-light: #3a4150;
    --shadow-sm: rgba(0, 0, 0, 0.4);
    --shadow-md: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.6);
    --shadow-red: rgba(220, 38, 38, 0.2);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1419 50%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 45px 40px;
    box-shadow: 0 20px 60px var(--shadow-lg), 0 0 0 1px var(--border-color);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.login-box h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-box h2 {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--red-primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--red-light), 0 4px 12px var(--shadow-red);
    transform: translateY(-1px);
}

.error-message {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--red-primary);
    border-left: 4px solid var(--red-primary);
    color: var(--red-hover);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px var(--shadow-red);
}

/* Container Principal */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Main Header - Full Width */
.main-header {
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-md);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--red-primary), var(--red-dark));
    box-shadow: 0 0 20px var(--red-glow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.header-title h1 {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.header-title h1::before {
    content: '';
    display: none;
}

.cuartel-name {
    display: block;
    color: var(--red-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    text-shadow: 0 0 10px var(--red-glow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.user-name {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.user-info .cuartel {
    display: none;
}

/* Tabs Navigation - Integrated in Header */
.tabs {
    display: flex;
    gap: 0;
    margin: 0;
    flex-wrap: wrap;
    border-bottom: none;
    padding: 0;
    position: relative;
    background: var(--bg-tertiary);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 2px;
}

.tab-btn {
    padding: 16px 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    min-width: fit-content;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--red-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 12px var(--red-glow);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    color: var(--red-primary);
    background: var(--bg-hover);
    border-bottom-color: var(--red-primary);
}

.tab-btn.active::before {
    width: 100%;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 16px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--red-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--red-glow);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-success {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-danger::before, .btn-success::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .btn-danger:hover::before, .btn-success:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-red);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--red-hover) 0%, var(--red-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-red);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-sm);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, var(--success) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-logout {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--red-primary);
    border-color: var(--red-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-red);
}

/* Tables */
table {
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 4px 20px var(--shadow-md);
}

table thead {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-bottom: 2px solid var(--red-primary);
}

table th {
    padding: 18px 20px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

table thead tr th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-primary);
    transition: width 0.3s ease;
}

table thead tr:hover th::after {
    width: 100%;
}

table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
}

table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background: var(--bg-hover);
}

table tbody td {
    position: relative;
    background: inherit;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--red-primary);
    transition: height 0.3s ease;
}

.card:hover {
    border-color: var(--red-primary);
    box-shadow: 0 8px 30px var(--shadow-md), 0 0 0 1px var(--red-light);
    transform: translateY(-4px);
}

.card:hover::before {
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

.card-body {
    color: var(--text-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px var(--shadow-red);
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px var(--shadow-lg), 0 0 0 1px var(--border-color);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.modal-title {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 16px;
}

.modal-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--red-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--red-glow);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--red-primary);
    transform: rotate(90deg);
}

.modal-body {
    margin-bottom: 28px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--red-primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--red-light), 0 4px 12px var(--shadow-red);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23dc2626' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.3;
    filter: drop-shadow(0 0 20px var(--red-glow));
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 28px;
    color: var(--text-secondary);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--red-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    box-shadow: 0 0 10px var(--red-glow);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* QR Login Section */
.qr-login-section {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
    
    table th,
    table td {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .modal {
        padding: 24px 20px;
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .login-box {
        padding: 35px 24px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    
    .user-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    table {
        font-size: 11px;
    }
    
    table th,
    table td {
        padding: 10px 12px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-primary);
    box-shadow: 0 0 8px var(--red-glow);
}

/* Panel Principal de Alertas */
.alert-panel {
    text-align: center;
    padding: 40px 20px;
}

.alert-header {
    margin-bottom: 50px;
}

.alert-header h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 0 20px var(--red-glow);
}

.alert-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.alert-button-container {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-alert-main {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    border: none;
    border-radius: 20px;
    padding: 40px 60px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px var(--shadow-red), 0 0 0 0 rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    min-width: 400px;
    max-width: 500px;
    animation: pulseButton 2s ease-in-out infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 10px 40px var(--shadow-red), 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px var(--shadow-red), 0 0 0 20px rgba(220, 38, 38, 0);
    }
}

.btn-alert-main::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-alert-main:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 60px var(--shadow-red), 0 0 0 0 rgba(220, 38, 38, 0.4);
    animation: none;
}

.btn-alert-main:hover::before {
    width: 500px;
    height: 500px;
}

.btn-alert-main:active {
    transform: translateY(-4px) scale(1.02);
}

.alert-icon {
    font-size: 64px;
    line-height: 1;
    filter: drop-shadow(0 0 20px var(--red-glow));
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.btn-alert-main:hover .alert-icon {
    animation: shake 0.3s ease-in-out infinite;
}

.alert-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.alert-title {
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.alert-subtitle-btn {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.alert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-hover));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--red-primary);
    box-shadow: 0 8px 30px var(--shadow-md), 0 0 0 1px var(--red-light);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--red-primary);
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--red-glow);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.alert-form-warning {
    background: rgba(220, 38, 38, 0.15);
    border: 2px solid var(--red-primary);
    border-left: 6px solid var(--red-primary);
    color: var(--red-hover);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--shadow-red);
    text-align: center;
}

.alert-confirm-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.confirm-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 16px;
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid var(--red-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.confirm-checkbox:hover {
    background: rgba(220, 38, 38, 0.2);
    box-shadow: 0 4px 15px var(--shadow-red);
}

.confirm-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--red-primary);
}

.confirm-checkbox input[type="checkbox"]:checked {
    box-shadow: 0 0 10px var(--red-glow);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.d-flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

/* Efectos de hover adicionales */
.btn-primary:active,
.btn-danger:active,
.btn-success:active {
    transform: translateY(0) scale(0.98);
}

/* Animación de entrada para elementos */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

table tbody tr {
    animation: slideInRight 0.3s ease backwards;
}

table tbody tr:nth-child(1) { animation-delay: 0.05s; }
table tbody tr:nth-child(2) { animation-delay: 0.1s; }
table tbody tr:nth-child(3) { animation-delay: 0.15s; }
table tbody tr:nth-child(4) { animation-delay: 0.2s; }
table tbody tr:nth-child(5) { animation-delay: 0.25s; }
