/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #ffeaea 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.header h1 {
    color: #003330ff;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Admin Header */
.admin-header {
    background: #003330ff;
    color: white;
    padding: 15px 0;
    margin-bottom: 30px;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Info Cards */
.info-cards {
    display: grid;
    gap: 20px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(199, 0, 0, 0.1);
    border-left: 4px solid #003330ff;
}

.card-icon {
    background: #003330ff;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card h3 {
    color: #003330ff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.card li:last-child {
    border-bottom: none;
}

.card li i {
    color: #003330ff;
    margin-right: 10px;
}

/* Login Box */
.login-box {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(199, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    border-left: 4px solid #003330ff;
}

.login-box h2 {
    color: #003330ff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.login-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.login-option.active {
    border-color: #003330ff;
    background: #fff5f5;
}

.login-option i {
    font-size: 2rem;
    color: #003330ff;
    margin-bottom: 10px;
    display: block;
}

.login-option h3 {
    color: #003330ff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.login-option p {
    color: #666;
    font-size: 0.9rem;
}

.protocol-check {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.protocol-check h4 {
    color: #003330ff;
    margin-bottom: 15px;
    text-align: center;
}

.protocol-input {
    display: flex;
    gap: 10px;
}

.protocol-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.protocol-input button {
    background: #003330ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(199, 0, 0, 0.1);
    border-left: 4px solid #003330ff;
}

.stat-number {
    color: #003330ff;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    color: #666;
    border-top: 1px solid #ddd;
}

.security-badge {
    background: #fff5f5;
    border-radius: 20px;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border: 1px solid #ffeaea;
}

.security-badge i {
    color: #003330ff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-left: 4px solid #003330ff;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #003330ff;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003330ff;
}

.btn {
    background: #003330ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.btn-secondary {
    background: #6c757d;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    width: auto;
}

.anonymity-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.toggle-option.selected {
    border-color: #003330ff;
    background: #fff5f5;
}

.toggle-option input {
    display: none;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid;
}

.alert-success {
    background: #f0fff4;
    color: #2d5016;
    border-left-color: #48bb78;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border-left-color: #003330ff;
}

/* Admin Styles */
.admin-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(199, 0, 0, 0.1);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: #fff5f5;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #003330ff;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background: #fff5f5;
    color: #003330ff;
    font-weight: 600;
}

.data-table tr:hover {
    background: #fff5f5;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-novo { background: #ffeaa7; color: #856404; }
.status-em_analise { background: #a7e1ff; color: #004085; }
.status-em_apuracao { background: #ffd8a7; color: #856404; }
.status-concluido { background: #a7ffb3; color: #155724; }
.status-arquivado { background: #e2e3e5; color: #383d41; }

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-edit { background: #17a2b8; }
.btn-delete { background: #dc3545; }
.btn-view { 
    background: #28a745; 
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-view:hover {
    background: #218838;
}

.demo-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilos para detalhes da manifestação */
.manifestacao-detalhes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detalhes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.detalhe-item {
    padding: 10px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #003330ff;
}

.descricao-box {
    background: white;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin: 15px 0;
}

.resposta-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.protocolo-display {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.btn-copy {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-copy:hover {
    background: rgba(255,255,255,0.3);
}

.user-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.user-actions {
    display: flex;
    gap: 5px;
}

.status-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

/* NOVOS ESTILOS PARA A TABELA DE MANIFESTAÇÕES */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1;
    padding: 10px 0;
}

.filter-dropdown-content a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
}

.filter-dropdown-content a:hover {
    background-color: #f8f9fa;
}

.filter-dropdown:hover .filter-dropdown-content {
    display: block;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
}

/* Modal Styles para visualização de manifestações */
.modal-manifestacao {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-manifestacao-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-manifestacao-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-manifestacao-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.close-modal-btn:hover {
    color: #495057;
}

.modal-manifestacao-body {
    padding: 20px;
}

.manifestacao-info-modal {
    margin-bottom: 25px;
}

.info-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-item-modal {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.info-label-modal {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    margin-bottom: 5px;
}

.info-value-modal {
    color: #212529;
    font-size: 14px;
}

.descricao-box-modal {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.descricao-box-modal h3 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
}

.descricao-text-modal {
    line-height: 1.5;
    color: #212529;
}

.resposta-section-modal {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.resposta-section-modal h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 16px;
}

.resposta-form-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 15px;
}

.form-actions-modal {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary-modal {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary-modal:hover {
    background-color: #0069d9;
}

.btn-secondary-modal {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary-modal:hover {
    background-color: #5a6268;
}

.resposta-existente-modal {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.resposta-existente-modal h4 {
    margin-bottom: 10px;
    color: #2e7d32;
}

.resposta-text-modal {
    line-height: 1.5;
    color: #212529;
}

.resposta-meta-modal {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
}

.status-selector-modal {
    margin-bottom: 20px;
}

.status-selector-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.status-selector-modal select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dee2e6;
}

.empty-state p {
    font-size: 16px;
}