:root {
    --primary-color: #003366;
    --secondary-color: #005588;
    --accent-color: #FFD700;
    --dark-color: #2C2C2C;
    --light-color: #F8F8F8;
    --gray-color: #E0E0E0;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #D62F2F;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

.header {
    display: flex;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-color);
    margin-bottom: 40px;
}

.logo-container {
    margin-right: 30px;
}

.logo {
    max-height: 80px;
    max-width: 180px;
}

.header-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 5px;
    position: relative;
}

.header-content h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header-content p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 15px;
}

.dashboard {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 250px;
    flex: 1;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.card:hover .card-icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.card h2 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 85, 136, 0.3);
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.status-badge.ready {
    background: var(--success-color);
    color: white;
}

.status-badge.not-ready {
    background: var(--danger-color);
    color: white;
}

.status-badge.partial {
    background: var(--warning-color);
    color: var(--dark-color);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--success-color);
    color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateX(200%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    background: var(--danger-color);
}

.notification.warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.notification.info {
    background: #17a2b8;
}

.notification.reset {
    background: var(--danger-color);
}

.notification.saving {
    background: var(--accent-color);
    color: var(--dark-color);
    animation: pulse 1.5s infinite;
}

.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.floating-btn#reset-all-config {
    right: 180px;
    background-color: var(--danger-color);
}

.floating-btn#reset-all-config:hover {
    background-color: #c82333;
}

#reset-all {
    background-color: #a00;
}

#reset-all:hover {
    background-color: #800;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .header-content h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .card {
        min-width: 100%;
    }
}

.sorteo-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
}

.sorteo-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.sorteo-info h4 {
    margin: 0;
    color: var(--primary-color);
}

.sorteo-info p {
    margin: 5px 0 0;
    color: #666;
}

.tab-container {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab.active {
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Agregar al final del archivo */

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-confirm {
    background: var(--success-color);
}

.btn-confirm:hover {
    background: #45a049;
}

/* Estilos para la tabla de impresión */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        margin: 0;
        padding: 15px;
        font-size: 12px;
    }
    
    table {
        width: 100%;
        border-collapse: collapse;
    }
    
    th, td {
        padding: 8px;
        border: 1px solid #ddd;
    }
    
    th {
        background-color: #f2f2f2 !important;
        color: #000 !important;
    }
}