body {
    background-color: #f8f9fa;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    line-height: 1.4;
}

.priority-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    line-height: 1.4;
}

.ticket-card {
    border-left: 4px solid #007bff;
    transition: transform 0.2s;
}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ticket-card.priority-alta {
    border-left-color: #dc3545;
}

.ticket-card.priority-media {
    border-left-color: #ffc107;
}

.ticket-card.priority-baixa {
    border-left-color: #6c757d;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #f5c6cb;
}

/* Estilos para chamados finalizados */
.ticket-card.status-resolvido {
    opacity: 0.8;
    border-left-color: #28a745;
    background-color: #f8f9fa;
}

.ticket-card.status-cancelado {
    opacity: 0.7;
    border-left-color: #6c757d;
    background-color: #f8f9fa;
}

.status-finished {
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    text-align: center;
}

.status-cancelled {
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: #f5f5f5;
    color: #757575;
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.modal-container {
    background: white;
    width: 80%;
    max-width: 1200px;
    height: 80%;
    max-height: 800px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: #007bff;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Seções do Modal */
.detail-section {
    margin-bottom: 2rem;
}

.detail-section h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.description-box {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.info-item span {
    color: #495057;
    font-size: 1rem;
}

/* Seção de Status */
.status-section, .actions-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.status-section h5, .actions-section h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: none;
}

.current-status, .current-priority {
    text-align: center;
    margin-bottom: 1rem;
}

.status-badge-large, .priority-badge-large {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Melhorar espaçamento dos ícones nos botões */
.btn {
    line-height: 1.5;
}

.btn-sm {
    line-height: 1.4;
}

.btn-block {
    width: 100%;
}

/* Status Final */
.final-status {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.final-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.final-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f1b0b7;
}

.final-status h5 {
    margin: 0 0 0.5rem 0;
    border-bottom: none;
}

.final-status p {
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        height: 90%;
        margin: 2.5%;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .col-lg-8, .col-lg-4 {
        flex: none;
        width: 100%;
    }
}