/* Estilos personalizados */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Tarjetas de estadísticas */
.stat-card {
    transition: transform 0.2s;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

/* Tickets */
.ticket-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.priority-critical {
    background-color: #dc3545;
    color: white;
}

.priority-high {
    background-color: #fd7e14;
    color: white;
}

.priority-medium {
    background-color: #ffc107;
    color: #000;
}

.priority-low {
    background-color: #6c757d;
    color: white;
}

.ticket-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-open {
    background-color: #0d6efd;
    color: white;
}

.status-in_progress {
    background-color: #ffc107;
    color: #000;
}

.status-resolved {
    background-color: #198754;
    color: white;
}

.status-closed {
    background-color: #6c757d;
    color: white;
}

.status-reopened {
    background-color: #dc3545;
    color: white;
}

/* Comentarios */
.comment-card {
    border-left: 3px solid #0d6efd;
    margin-bottom: 1rem;
    background-color: white;
}

.comment-internal {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.comment-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}