/* css/odt-styles.css - Estilos globales para el sistema ODT */

:root {
    --primary-dark: #1e3a5f;
    --primary-medium: #2b4c7c;
    --primary-light: #3d5f8c;
    --accent-color: #f0b71c;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #dee2e6;
    --text-dark: #343a40;
    --text-muted: #6c757d;
    --border-radius: 10px;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

/* ===== TARJETAS DE BIENVENIDA ===== */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.welcome-card .icon-container {
    float: left;
    margin-right: 30px;
    animation: bounce 2s infinite;
}

.welcome-card h1 {
    margin: 0 0 10px;
    font-weight: 600;
    font-size: 2rem;
}

.welcome-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* ===== NOTIFICACIONES ===== */
.notification-circle {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.notification-circle .number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ===== NAVEGACIÓN DE PESTAÑAS ===== */
.nav-custom {
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-custom .nav-item {
    flex: 1;
    min-width: 120px;
}

.nav-custom .nav-link {
    border-radius: 50px;
    padding: 12px 15px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: block;
}

.nav-custom .nav-link:hover {
    background: var(--gray-light);
    color: var(--primary-medium);
}

.nav-custom .nav-link.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: white;
    box-shadow: 0 5px 15px rgba(43, 76, 124, 0.3);
}

.nav-custom .nav-link i {
    margin-right: 8px;
}

.badge-custom {
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    margin-left: 8px;
    font-size: 12px;
}

/* ===== FILTROS RÁPIDOS ===== */
.filters-row {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--gray-medium);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.filter-input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 95, 140, 0.1);
}

/* ===== TABLAS MEJORADAS ===== */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.table-custom {
    width: 100%;
    margin-bottom: 0;
}

.table-custom thead th {
    background: var(--primary-dark);
    color: white;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 10px;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}

.table-custom thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.table-custom thead th:last-child {
    border-radius: 0 10px 10px 0;
}

.table-custom tbody tr {
    transition: var(--transition);
}

.table-custom tbody tr:hover {
    background: var(--gray-light);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table-custom tbody td {
    padding: 15px 10px;
    vertical-align: middle;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-medium);
}

.table-custom thead input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    width: 100%;
}

.table-custom thead input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* ===== ESTADOS DE TICKETS ===== */
.estado-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estado-pendiente {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid var(--warning-color);
}

.estado-proceso {
    background: #cce5ff;
    color: #004085;
    border-left: 3px solid var(--info-color);
}

.estado-resuelto {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid var(--success-color);
}

/* ===== PRIORIDADES ===== */
.prioridad-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.prioridad-alta {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid var(--danger-color);
}

.prioridad-media {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid var(--warning-color);
}

.prioridad-baja {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid var(--success-color);
}

/* ===== BOTONES DE ACCIÓN ===== */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-action {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.btn-view {
    background: var(--info-color);
}

.btn-edit {
    background: var(--warning-color);
    color: var(--text-dark);
}

.btn-edit:hover {
    color: var(--text-dark);
}

.btn-delete {
    background: var(--danger-color);
}

.btn-print {
    background: var(--success-color);
}

/* ===== ALERTAS FLOTANTES ===== */
.floating-alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== ACCESO DENEGADO ===== */
.access-denied {
    margin-top: 100px;
    margin-bottom: 100px;
}

.access-denied-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.access-denied-icon {
    font-size: 5rem;
    color: var(--danger-color);
    margin-bottom: 20px;
}

.access-denied h1 {
    color: var(--danger-color);
    font-size: 3rem;
    margin: 20px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-custom {
        border-radius: 15px;
    }
    
    .nav-custom .nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .welcome-card .icon-container {
        float: none;
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .welcome-card h1 {
        font-size: 1.5rem;
    }
    
    .table-container {
        padding: 10px;
        overflow-x: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .floating-alert {
        min-width: 250px;
        right: 10px;
        left: 10px;
    }
    
    .access-denied-card {
        padding: 30px 20px;
    }
    
    .access-denied h1 {
        font-size: 2rem;
    }
}