* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    padding: 20px;
    color: #333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 28px;
    letter-spacing: 1px;
}

.header h2 {
    font-size: 22px;
    font-weight: 400;
    opacity: 0.9;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: white;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 32px;
    margin-right: 15px;
}

.card-content {
    flex: 1;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.card p {
    font-size: 28px;
    font-weight: bold;
}

.chart-container {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.chart-title {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    font-weight: 500;
}

.table-container {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

tr:hover {
    background-color: #f8f9fa;
}

.file-input-container {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

.file-button {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.file-button:hover {
    transform: scale(1.1);
}

.file-button i {
    font-size: 24px;
}

.file-input {
    display: none;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    border: none;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.num-column {
    width: 50px;
    text-align: center;
}

.status-display {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.status-si {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.status-no {
    background-color: rgba(244, 67, 54, 0.15);
    color: #c62828;
}

.status-pendiente {
    background-color: rgba(158, 158, 158, 0.15);
    color: #616161;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.loading {
    display: none;
    text-align: center;
    margin: 30px 0;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #2196F3;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    .charts-row {
        grid-template-columns: 1fr;
    }
    .header {
        flex-direction: column;
        text-align: center;
    }
    .header h1, .header h2 {
        margin: 5px 0;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }
    .card {
        flex-direction: column;
        text-align: center;
    }
    .card-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
