/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #000000;
    line-height: 1.6;
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navigation */
header {
    background-color:#afafaf;
    padding: 20px 40px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
nav .custom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
    position: relative; /* For dropdown */
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #0056b3;
    -webkit-text-fill-color: #ccc;        
}

/* Dropdown Menu */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0; /* Align to the right */
    border-radius: 5px;
    overflow: hidden;
}

.user-menu .dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.user-menu .dropdown-content a:hover {
    background-color: #f1f1f1;
}

.user-menu .dropdown-content.show {
    display: block;
}


/* Main Content Area */
.content {
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #000000;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width */
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-check-label {
    margin-bottom: 0 !important; /* Override default label margin */
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #007bff;
    color: white;
}

.btn-secondary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

.btn-light {
    background-color: #f8f9fa;
    color: #343a40;
    border: 1px solid #ced4da;
}

.btn-light:hover {
    background-color: #e2e6ea;
}

.btn-tertiary { /* For "Clear Filters" */
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
}

.btn-tertiary:hover {
    background-color: #e0e0e0;
}


.btn-lg {
    padding: 12px 25px;
    font-size: 1.1em;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.85em;
}

.button-group {
    margin-top: 25px;
    display: flex;
    gap: 15px; /* Space between buttons */
    justify-content: center;
}

/* Tables */
.table-responsive {
    overflow-x: auto; /* Ensures table is scrollable on smaller screens */
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9em;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

.data-table td a.btn {
    margin-right: 5px;
}

/* Specific elements */
.hero {
    text-align: center;
    padding: 60px 20px;    
    color: rgb(0, 0, 0);
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    margin: 10px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.custom-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.card h2 {
    color: #007bff;
    font-size: 1.5em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h2 i {
    margin-right: 10px;
    color: #28a745; /* Icon color */
}

.cta {
    text-align: center;
    background-color: #e9ecef;
    padding: 50px 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.cta h2 {
    color: #333;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Confirmation Page */
.confirmation-container {
    text-align: center;
    padding: 50px 20px;
    background-color: #e6f7ff; /* Light blue background */
    border-radius: 8px;
    border: 1px solid #b3e0ff;
    color: #0056b3;
}

.confirmation-container h2 {
    color: #28a745; /* Green for success */
    margin-bottom: 25px;
    font-size: 2em;
}

.protocol-box {
    font-size: 2.5em;
    font-weight: bold;
    color: #007bff;
    background-color: #fff;
    border: 2px dashed #007bff;
    padding: 20px;
    margin: 30px auto;
    display: inline-block;
    border-radius: 8px;
    letter-spacing: 2px;
}

.confirmation-container p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Chamado Details */
.chamado-detalhes-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.chamado-detalhes-container h2 {
    color: #007bff;
    margin-bottom: 25px;
    text-align: center;
}

.chamado-info p {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.chamado-info p strong {
    color: #333;
    min-width: 150px;
    display: inline-block;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    background-color: #ffc004;
    color: rgb(255, 255, 255);
    font-size: 0.9em;
    text-transform: uppercase;
}

/* Status Colors */
.status-aberto { background-color:  #ff0000 !important; } /* Blue */
.status-em-analise { background-color: #ffc004 !important; } /* Yellow */
.status-atribuido { background-color: #17a2b8 !important; } /* Teal */
.status-em-progresso { background-color: #6f42c1 !important; } /* Purple */
.status-pendente { background-color: #fd7e14 !important; } /* Orange */
.status-concluído { background-color: #28a745 !important; } /* Green */
.status-fechado { background-color: #6c757d !important; } /* Gray */

/* Priority Colors */
.priority-baixa { background-color: #28a745 !important; } /* Green */
.priority-média { background-color: #ffc107 !important; } /* Yellow */
.priority-alta { background-color: #fd7e14 !important; } /* Orange */
.priority-crítica { background-color: #dc3545 !important; } /* Red */


/* Feedback Box */
.feedback-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9f5e9;
    border-left: 5px solid #28a745;
    border-radius: 5px;
}
.feedback-box h4 {
    color: #218838;
    margin-bottom: 10px;
}

/* Comments Section */
.comments-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.comments-section h3 {
    margin-bottom: 20px;
    color: #0056b3;
}

.comment-item {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.comment-item p {
    margin-bottom: 5px;
}

.comment-item p strong {
    color: #007bff;
}

.add-comment-form.custom-form {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.add-comment-form textarea {
    min-height: 100px;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dashboard-card h3 {
    color: #007bff;
    font-size: 1.3em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.dashboard-card h3 i {
    margin-right: 10px;
    color: #6c757d;
}

.dashboard-card .big-number {
    font-size: 3em;
    font-weight: bold;
    color: #28a745;
    margin-top: 10px;
}

.dashboard-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.dashboard-section h2 {
    color: #007bff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.dashboard-section h2 i {
    margin-right: 10px;
    color: #ffc107;
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Charts */
.chart-container {
    width: 100%;
    max-width: 600px; /* Adjust as needed */
    margin: 0 auto;
    padding: 20px;
}

/* Filter Form for lists */
.filter-form.custom-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    align-items: flex-end; /* Align buttons at the bottom */
}

.filter-form .form-group {
    flex: 1; /* Allow items to grow */
    min-width: 180px; /* Minimum width for each filter item */
    margin-bottom: 0; /* Override default margin */
}

.filter-form .form-group label {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.filter-form button, .filter-form a.btn {
    align-self: flex-end; /* Align buttons to the bottom of the flex container */
    padding: 10px 15px;
    font-size: 0.9em;
}

.filter-form .search-group {
    flex-grow: 2; /* Make search input take more space */
}

/* No Results message */
.no-results {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}


/* Footer */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    nav .custom-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .form-container, .chamado-detalhes-container, .admin-section {
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-actions .btn {
        width: 80%; /* Make buttons full width */
        margin-bottom: 10px;
    }

    .filter-form.custom-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form .form-group {
        width: 100%;
        min-width: unset;
    }

    .filter-form button, .filter-form a.btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 90%;
    }

    .confirmation-container h2 {
        font-size: 1.5em;
    }

    .protocol-box {
        font-size: 1.8em;
        padding: 15px;
    }

    .chamado-detalhes-container h2,
    .dashboard-section h2 {
        font-size: 1.5em;
    }

    .data-table th, .data-table td {
        padding: 8px 10px;
        font-size: 0.85em;
    }
}

/* Estilos Gerais */
.chamados-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-with-actions h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

/* Filtros Acordeão */
.filter-accordion {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.accordion-toggle {
    display: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #5d7de8, #9666d8);
}

.accordion-header i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.accordion-toggle:checked ~ .accordion-header .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-toggle:checked ~ .accordion-content {
    max-height: 1000px;
}

/* Formulário Moderno */
.modern-filter-form.custom-form {
    padding: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

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

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.filter-label i {
    margin-right: 6px;
    color: #718096;
}

/* Componentes Específicos */
.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-box input.custom-input {
    width: 100%;
    padding: 10px 15px 10px 25px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.search-box input:focus {
    border-color: #a777e3;
    box-shadow: 0 0 0 3px rgba(167, 119, 227, 0.2);
    outline: none;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #718096;
}

.select-wrapper select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    appearance: none;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
}

.select-wrapper select:focus {
    border-color: #a777e3;
    box-shadow: 0 0 0 3px rgba(167, 119, 227, 0.2);
    outline: none;
}



/* Prioridades Coloridas */
.priority-baixa { background: #48bb78 !important; }
.priority-média { background: #ed8936 !important; }
.priority-alta { background: #f56565 !important; }
.priority-crítica { background: #9f7aea !important; }

/* Date Range Picker */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input.custom-input {
    position: relative;
    flex: 1;
}

.date-input input.custom-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.date-input input:focus {
    border-color: #a777e3;
    box-shadow: 0 0 0 3px rgba(167, 119, 227, 0.2);
    outline: none;
}

.date-separator {
    color: #718096;
    font-size: 0.9rem;
}


/* Botões de Ação */
.form-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn i {
    font-size: 0.9rem;
}

.btn-apply {
    background: #6e8efb;
    color: white;
}

.btn-apply:hover {
    background: #5d7de8;
}

.btn-clear {
    background: #edf2f7;
    color: #4a5568;
}

.btn-clear:hover {
    background: #e2e8f0;
}

.btn-export {
    background: #38a169;
    color: white;
}

.btn-export:hover {
    background: #2f855a;
}

/* Tabela Moderna */
.modern-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modern-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.modern-data-table th {
    background: #f7fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.modern-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.modern-data-table tr:hover td {
    background: #f8fafc;
}

/* Badges e Tags */
.protocolo-badge {
    display: inline-block;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #4a5568;
}

.category-tag {
    display: inline-block;
    background: #ebf8ff;
    color: #3182ce;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}


/* Botões de Ação */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #edf2f7;
    color: #4a5568;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #e2e8f0;
}

.view-btn:hover {
    background: #6e8efb;
    color: white;
}

/* Paginação */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #edf2f7;
    color: #4a5568;
    transition: all 0.2s;
}

.pagination-btn:hover:not(.disabled) {
    background: #6e8efb;
    color: white;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-page {
    font-weight: 600;
    color: #4a5568;
    margin: 0 15px;
}

/* Mensagem sem resultados */
.no-results-message {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.no-results-message i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.no-results-message h3 {
    color: #4a5568;
    margin-bottom: 10px;
}

.no-results-message p {
    color: #718096;
    max-width: 500px;
    margin: 0 auto 20px;
}

.btn-export-pdf {
    background: #e53e3e;
    color: white;
}

.btn-export-pdf:hover {
    background: #c53030;
}

/* Estilo para selects múltiplos */
.modern-select[multiple] {
    min-height: 120px;
    padding: 8px;
}

.modern-select[multiple] option {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
    transition: all 0.2s;
}

.modern-select[multiple] option:hover {
    background-color: #ebf4ff;
}

.modern-select[multiple] option:checked {
    background-color: #6e8efb;
    color: white;
}

/* Melhorias no date picker */
.date-input input.custom-input {
    width: 80%;
    padding: 8px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.date-input input:focus {
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
    outline: none;
}





/* ===== DROPDOWN FILTER STYLES ===== */
.dropdown-filter {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    border-color: #4a89dc;
}

.dropdown-toggle i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.dropdown-filter.active .dropdown-menu {
    display: block;
}

.dropdown-filter.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f7fa;
}

.dropdown-item input[type="checkbox"] {
    margin-right: 10px;
}

.dropdown-item .status-badge,
.dropdown-item .priority-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Badge colors remain the same as before */

.photo-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    max-width: 500px;
}

.photo-preview a {
    display: block;
    text-align: center;
}

.photo-preview img {
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.photo-preview img:hover {
    transform: scale(1.03);
}

.photo-preview small {
    display: block;
    text-align: center;
    margin-top: 5px;
    color: #666;
}

/* Estilos para a visualização de fotos */
.photo-preview {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    max-width: 500px;
}

.photo-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.photo-preview img:hover {
    transform: scale(1.02);
}

.photo-preview small {
    display: block;
    text-align: center;
    margin-top: 5px;
    color: #666;
}

.img-thumbnail {
    padding: 4px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.descricao-chamado {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px; /* Altura máxima antes de aparecer a rolagem */
    overflow-y: auto; /* Rolagem vertical quando necessário */
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin-top: 5px;
}

/* Estilos específicos para o relatório mensal */
.dashboard-card .big-number small {
    font-size: 0.4em;
    display: block;
    color: #6c757d;
    margin-top: 5px;
}

/* Ajustes para tabelas no relatório */
.dashboard-section {
    margin-top: 30px;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    color: #007bff;
    display: flex;
    align-items: center;
}

.dashboard-section h2 i {
    margin-right: 10px;
    color: #6c757d;
}

/* Ajustes para o seletor de mês */
.month-selector {
    max-width: 300px;
    margin: 0 auto 30px;
}

/* Melhorias na responsividade */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        margin-bottom: 15px;
    }
}

/* Adicione isso ao seu styles.css */
.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
    transform: translateY(-1px);
}

.btn-info i {
    margin-right: 5px;
}

/* Estilos para a página de detalhes */
.chamado-detalhes-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.info-row {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.chamado-edit-section {
    margin-top: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.comments-section {
    margin-top: 30px;
}

.comment-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-date {
    color: #666;
    font-size: 0.9em;
}

.chamado-actions {
    margin-top: 30px;
}

.action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Dashboard Layout */
.dashboard-container {
    display: grid;
    gap: 1.5rem;
    padding: 1rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #343a40;
}

/* Chart Grid */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1rem;
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.chart-header small {
    color: #6c757d;
    font-size: 0.85rem;
}

.chart-container {
    position: relative;
    height: 250px; /* Altura fixa para todos os gráficos */
}

.chart-container.compact {
    height: 200px;
}

.chart-footer {
    margin-top: 0.5rem;
    text-align: right;
}

/* Critical Tickets */
.critical-tickets {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-top: 1rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.section-header p {
    color: #6c757d;
}

/* Compact Table */
.compact-table {
    width: 100%;
    font-size: 0.9rem;
}

.compact-table th, 
.compact-table td {
    padding: 0.75rem;
}

.compact-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.compact-table tr:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.btn-action {
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #28a745;
}

/* Responsividade */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .compact-table {
        display: block;
        overflow-x: auto;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA ACOMPANHAMENTO PÚBLICO ===== */
.acompanhamento-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Principal */
.acompanhamento-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(102, 126, 234, 0.2));
    margin-bottom: 1rem;
}

.header-icon-container i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Cards Principais */
.search-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.search-card .card-header {
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
}

.search-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.search-card .card-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.result-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.result-card .card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 1.5rem 2rem;
    color: white;
}

/* Formulário de Busca */
.search-form .input-group {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-form .input-group-text {
    background: white;
    border: none;
    padding: 1rem 1.25rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.search-form .form-control {
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    background: white;
    height: auto;
}

.search-form .form-control:focus {
    box-shadow: none;
    background: white;
}

.search-form .btn {
    border-radius: 0 15px 15px 0;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Protocolo Badge */
.protocolo-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Layout de Colunas */
.acompanhamento-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .acompanhamento-layout {
        grid-template-columns: 1fr;
    }
}

/* Informações do Chamado */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(233, 236, 239, 0.9);
    transform: translateY(-2px);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Timeline Modernizada */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline {
    position: relative;
    max-width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    z-index: 2;
    position: relative;
    font-size: 1.1rem;
}

.timeline-item.active .timeline-icon {
    background: #667eea;
    color: white;
    box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.2);
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
}

.timeline-content h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.timeline-content p {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.timeline-content small {
    color: #95a5a6;
    font-size: 0.85rem;
}

/* Galeria de Fotos */
.photos-section {
    margin: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1/1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* Ações Rápidas */
.quick-actions {
    position: sticky;
    top: 2rem;
    z-index: 100;
}

.action-buttons {
    display: grid;
    gap: 1rem;
}

.action-btn {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsividade */
@media (max-width: 768px) {
    .acompanhamento-container {
        padding: 1rem;
    }
    
    .search-card .card-body,
    .result-card .card-body {
        padding: 1.5rem;
    }
    
    .header-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .header-icon-container i {
        font-size: 1.8rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .search-form .input-group {
        flex-direction: column;
    }
    
    .search-form .input-group-text,
    .search-form .form-control,
    .search-form .btn {
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    .timeline-content {
        padding: 1rem;
    }
}

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

.search-card {
    animation: fadeInUp 0.6s ease;
}

.result-card {
    animation: fadeInUp 0.8s ease;
}

/* Estados de Foco Melhorados */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Loader para Busca */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorias de Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .search-card {
        border: 2px solid #000;
    }
    
    .result-card {
        border: 2px solid #000;
    }
    
    .info-item {
        border: 1px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .search-card .card-body {
        background: #2d3748;
    }
    
    .result-card .card-body {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .info-item {
        background: #4a5568;
    }
    
    .info-label {
        color: #e2e8f0;
    }
    
    .info-value {
        color: #cbd5e0;
    }
    
    .description-box, .feedback-box {
        background: #4a5568;
        color: #e2e8f0;
    }
}


/* Estilo Premium para Dashboard de Chamados */
body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.custom-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}
.card h3 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}
.btn {
    border-radius: 8px !important;
    padding: 6px 16px !important;
}
.custom-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.table th {
    background: #007bff;
    color: #fff;
    position: sticky;
    top: 0;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.03);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.toggle-btn {
    cursor: pointer;
    font-size: 0.9em;
    color: #007bff;
    background: none;
    border: none;
    margin-bottom: 10px;
}
