/* Estilos personalizados para la aplicación */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* Metric Cards */
.metric-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #007bff;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* File Upload */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border: none;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border: none;
}

/* Table */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #343a40;
    border: none;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* File Info */
.file-info {
    background-color: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.file-info.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.file-info.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Loading */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Chart Container */
#duplicatesChart {
    max-height: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-text {
    font-weight: 500;
}

/* Instructions */
.card-header.bg-info {
    background: linear-gradient(45deg, #17a2b8, #138496) !important;
}

/* File Upload Cards */
.card-header.bg-success {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important;
}

.card-header.bg-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800) !important;
    color: #212529 !important;
}

.card-header.bg-primary {
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
}

.card-header.bg-danger {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
}

/* Estilos para alineación de fechas en la tabla */
.fecha-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fecha-principal {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.horas-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
}

.hora-item {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.1rem;
    font-family: 'Courier New', monospace;
}

/* Paginación */
#paginationControls {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
    margin-top: 20px;
}

#paginationControls .btn-group .btn {
    border-color: #6c757d;
    color: #6c757d;
}

#paginationControls .btn-group .btn:hover:not(.disabled) {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

#paginationControls .btn-group .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#paginationInfo {
    font-weight: 500;
    color: #495057;
}

#itemsPerPage {
    min-width: 80px;
}

/* Responsive para paginación */
@media (max-width: 768px) {
    #paginationControls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #paginationControls .d-flex {
        justify-content: center;
    }
}
