/* Estilos customizados para o Sistema de Chamados */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

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

.card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.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;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dashboard-stats {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.chamado-card {
    border-left: 4px solid #007bff;
    margin-bottom: 1rem;
}

.chamado-card.aberto {
    border-left-color: #dc3545;
}

.chamado-card.em-atendimento {
    border-left-color: #ffc107;
}

.chamado-card.fechado {
    border-left-color: #28a745;
}

.setor-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.upload-area.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 1rem;
}

.resposta-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #007bff;
}

.resposta-header {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
}

.servico-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.servico-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* Responsividade */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .dashboard-stats {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}



/* Estilos para Gestão de Clientes */
.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    transition: all 0.3s;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: transparent;
}

.nav-tabs .nav-link:hover:not(.active) {
    background-color: #e9ecef;
    border-color: transparent;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s;
}

.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

.btn-sm {
    border-radius: 15px;
    transition: all 0.2s;
}

.btn-sm:hover {
    transform: scale(1.1);
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    color: white;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane {
    animation: fadeIn 0.5s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* Hover effects para botões de ação */
.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fd7e14, #dc3545);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e83e8c, #6f42c1);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: transparent;
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, #6c757d, #495057);
    border-color: transparent;
}

/* Status badges específicos */
.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e83e8c) !important;
}

.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: white !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
}

