body { font-family: sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 20px; }
.container { max-width: 900px; margin: 0 auto; background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
h1, h2 { color: #4a4a4a; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
button:hover { background-color: #0056b3; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
thead tr { background-color: #f2f2f2; }
.btn-delete { background-color: #dc3545; color: white; padding: 5px 10px; border: none; border-radius: 4px; cursor: pointer; }
.btn-edit { background-color: #ffc107; color: #212529; padding: 5px 10px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
/* Adicione este código no final do seu style.css */

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.btn-view-map {
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}
.btn-view-map:hover {
    background-color: #218838;
}

/* Adicione este código no final do seu style.css */

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin-right: 5px;
}
.btn-whatsapp:hover {
    background-color: #1DA851;
}

/* Estilos para o módulo de e-mail */
.btn-send-email {
    background-color: #17a2b8;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}
.btn-send-email:hover {
    background-color: #138496;
}
.alert-success {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
/* Estilos para o Layout Principal com Sidebar */
.main-layout { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background-color: #343a40; color: #fff; padding: 20px; display: flex; flex-direction: column; }
.sidebar h2 { color: #fff; text-align: center; }
.sidebar nav ul { list-style: none; padding: 0; margin: 20px 0; }
.sidebar nav a { color: #adb5bd; text-decoration: none; display: block; padding: 10px; border-radius: 4px; }
.sidebar nav a:hover { background-color: #495057; color: #fff; }
.sidebar nav a .fas { margin-right: 10px; }
.sidebar .user-info { margin-top: auto; border-top: 1px solid #495057; padding-top: 15px; }
.sidebar .user-info span { display: block; margin-bottom: 10px; }
.sidebar .user-info a { color: #adb5bd; text-decoration: none; }
.content { flex-grow: 1; padding: 20px; background-color: #f4f4f9; }

/* Estilos para o Módulo de Tarefas */
.status { padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; color: #fff; }
.status.pendente { background-color: #ffc107; color: #212529; }
.status.em-andamento { background-color: #007bff; }
.status.concluida { background-color: #28a745; }
/* Estilos para os botões de ação das tarefas */
.actions { display: flex; gap: 5px; }
.btn-action {
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-action.btn-complete { background-color: #28a745; }
.btn-action.btn-reopen { background-color: #6c757d; }
.btn-action.btn-edit { background-color: #ffc107; color: #212529; text-decoration: none;}
/* Estilos do Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #6c757d;
}
.stat-card p {
    margin: 0;
    font-size: 36px;
    font-weight: bold;
}
.stat-card .fas {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: rgba(0,0,0,0.05);
}
.dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.dashboard-column {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.dashboard-column h2 { font-size: 18px; margin: 0 0 15px 0; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.recent-list li:last-child { border-bottom: none; }
/* Estilos para o FullCalendar */
#calendar {
    margin-top: 20px;
    min-height: 600px;
}
/* Estilos para o cabeçalho das páginas e botões de ação */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-actions {
    display: flex;
    gap: 10px;
}

.btn-primary, .btn-secondary {
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background-color: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background-color: #5a6268;
}
.btn-action.btn-archive { background-color: #343a40; }
/* Adicione este código no final do seu style.css */
.form-group-half {
    display: flex;
    gap: 20px;
}
.form-group-half > div {
    flex: 1;
}
/* Estilos para Histórico de Tarefas */
.task-history {
    margin-top: 30px;
}
.comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.history-feed {
    margin-top: 20px;
}
.history-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.history-item:last-child {
    border-bottom: none;
}
.history-icon .fas {
    font-size: 18px;
    color: #6c757d;
}
.history-content p {
    margin: 0 0 5px 0;
}
.history-content strong {
    margin-right: 5px;
}
.history-content small {
    color: #6c757d;
}
/* Estilos para as Prioridades */
.priority {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}
.priority.baixa {
    background-color: #17a2b8; /* Ciano */
}
.priority.média {
    background-color: #ffc107; /* Amarelo */
    color: #212529;
}
.priority.alta {
    background-color: #dc3545; /* Vermelho */
}
/* Estilos para os Fieldsets no Formulário */
fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
legend {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 10px;
    color: #343a40;
}
input[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}
/* Estilos para a Página de Relatórios */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 400px; /* Altura fixa para os gráficos */
}
/* Estilos para Status de Demandas */
.status-demanda {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    display: inline-block;
}
.status-demanda.nova { background-color: #007bff; }
.status-demanda.em-analise { background-color: #ffc107; color: #212529; }
.status-demanda.encaminhada { background-color: #17a2b8; }
.status-demanda.resolvida { background-color: #28a745; }
.status-demanda.recusada { background-color: #dc3545; }
/* Estilos para a Ficha de Visualização */
.view-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}
.view-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.view-card h3 {
    margin: 0 0 15px 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    font-size: 16px;
}
.data-pair {
    margin-bottom: 12px;
    font-size: 14px;
}
.data-label {
    font-weight: bold;
    color: #555;
    display: block;
    margin-bottom: 2px;
}
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.document-list li a {
    text-decoration: none;
    color: #007bff;
}
.document-list li a:hover {
    text-decoration: underline;
}

/* Estilos para Flash Messages (Alertas) */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Estilos para Status de Assinatura */
.status-demanda.active { background-color: #28a745; }
.status-demanda.blocked { background-color: #dc3545; }
.status-demanda.grace_period { background-color: #ffc107; color: #212529; }

/* Barra de Anúncio */
.anuncio-bar {
    padding: 15px;
    text-align: center;
    position: relative;
}
.anuncio-bar .dismiss-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

/* Estilos para a Página de Saúde do Sistema */
.health-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.health-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.health-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}
.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    color: #fff;
}
.status-badge.online {
    background-color: #28a745;
}
.status-badge.offline {
    background-color: #dc3545;
}
.log-viewer {
    background-color: #212529;
    color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
}
.log-viewer pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}
/* Cores para os tipos de Anúncio e Alertas */
.alert-info, .anuncio-bar.alert-info {
    color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb;
}
.alert-success, .anuncio-bar.alert-success {
    color: #155724; background-color: #d4edda; border-color: #c3e6cb;
}
.alert-warning, .anuncio-bar.alert-warning {
    color: #856404; background-color: #fff3cd; border-color: #ffeeba;
}
.alert-danger, .alert-error, .anuncio-bar.alert-danger {
    color: #721c24; background-color: #f8d7da; border-color: #f5c6cb;
}
/* Estilos para Paginação */
.pagination {
    margin-top: 20px;
    text-align: center;
}
.pagination a {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
}
.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.pagination a:hover:not(.active) {
    background-color: #f2f2f2;
}

/* Estilos para a Nova Lista de Tarefas do Dashboard */
.personal-task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.personal-task-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}
.personal-task-list li:last-child a {
    border-bottom: none;
}
.personal-task-list li a:hover {
    background-color: #f8f9fa;
}
.personal-task-list .priority {
    margin-right: 15px;
    flex-shrink: 0;
}
.personal-task-list .due-date {
    margin-left: 15px;
    font-size: 12px;
    color: #6c757d;
    flex-shrink: 0;
}
.empty-list {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Estilos para o Dashboard Financeiro */
.stat-card.income .fas { color: rgba(40, 167, 69, 0.15); }
.stat-card.expense .fas { color: rgba(220, 53, 69, 0.15); }
.stat-card.balance.positive p { color: #28a745; }
.stat-card.balance.negative p { color: #dc3545; }

/* Estilos adicionais para botões de ação */
.btn-action {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 2px;
    border-radius: 4px;
    font-size: 0.9em;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.2s;
}

.btn-action.btn-edit { background-color: #007bff; }
.btn-action.btn-edit:hover { background-color: #0056b3; }

.btn-action.btn-delete { background-color: #dc3545; }
.btn-action.btn-delete:hover { background-color: #bd2130; }

.btn-action.btn-view { background-color: #6c757d; } /* Novo botão de visualizar */
.btn-action.btn-view:hover { background-color: #5a6268; }

/* Estilo para cards de detalhe */
.detail-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.detail-card p {
    margin-bottom: 8px;
    font-size: 1.1em;
}
.detail-card strong {
    color: #333;
    display: inline-block;
    min-width: 150px;
}
.detail-card .btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.detail-card .btn-link:hover {
    text-decoration: underline;
}
