/* Estilos gerais - NOVA PALETA RESERVA DO VALE */
.adp-area-proprietario {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.adp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.adp-header h1 {
    color: #1e3a5f;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
}

.adp-logout {
    background: #a53e3e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.adp-logout:hover {
    background: #152d47;
}

/* Correção do layout dos ícones */
.adp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.adp-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(30, 58, 95, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.adp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.15);
}

.adp-card-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6b 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adp-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.adp-card-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

/* Etapas da Conquista */
.adp-etapa {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid;
}

.adp-etapa-timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    min-height: 80px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.adp-etapa-icone-timeline {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.adp-status-pendente {
    background: #fef9e7;
    border-left-color: #b8621b;
}

.adp-status-em_andamento {
    background: #e8f4fd;
    border-left-color: #1e3a5f;
}

.adp-status-concluido {
    background: #eafaf1;
    border-left-color: #2d5a3d;
}

.adp-etapa-nome {
    font-weight: 500;
    color: #1e3a5f;
}

.adp-etapa-status {
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
    text-transform: capitalize;
}

.adp-status-pendente .adp-etapa-status {
    background: #b8621b;
}

.adp-status-em_andamento .adp-etapa-status {
    background: #1e3a5f;
}

.adp-status-concluido .adp-etapa-status {
    background: #2d5a3d;
}

/* Boletos */
.adp-boleto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.adp-boleto-pendente {
    background: #fef9e7;
    border-color: #b8621b;
}

.adp-boleto-pago {
    background: #eafaf1;
    border-color: #2d5a3d;
}

.adp-boleto-vencido {
    background: #fdf2f2;
    border-color: #a53e3e;
}

.adp-boleto-data {
    font-weight: 500;
    color: #1e3a5f;
}

.adp-boleto-valor {
    font-weight: 600;
    color: #2d5a3d;
    font-size: 1.1rem;
}

/* Documentos */
.adp-documento {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.adp-documento-nome {
    font-weight: 500;
    color: #2c3e50;
}

/* Botões */
.adp-btn-download {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.adp-btn-download:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.adp-btn-download svg {
    width: 16px;
    height: 16px;
}

/* Exceções para elementos administrativos */
.adp-chat-admin-container,
.adp-chat-admin-header,
.adp-conversas-painel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
}

/* ===== ESTILOS DO CHAT ===== */

/* Botão flutuante do chat */
.adp-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #1e3a5f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    color: white;
    font-size: 24px;
}

.adp-chat-button:hover {
    background: #152d47;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.adp-chat-button.active {
    background: #a53e3e;
}

.adp-chat-button.status-online {
    background: #10b981;
}

.adp-chat-button.status-ausente {
    background: #f59e0b;
}

.adp-chat-button.status-offline {
    background: #6b7280;
}

/* Badge de mensagens não lidas */
.adp-chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Modal do chat */
.adp-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.adp-chat-container {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    height: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Cabeçalho do chat */
.adp-chat-header {
    background: #1e3a5f;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adp-chat-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.adp-chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.adp-chat-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
}

.adp-chat-status-indicator.status-online {
    background: #10b981;
}

.adp-chat-status-indicator.status-ausente {
    background: #f59e0b;
}

.adp-chat-status-indicator.status-offline {
    background: #ef4444;
}

.adp-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s;
}

.adp-chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Área de mensagens */
.adp-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.adp-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.adp-chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.adp-chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.adp-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mensagens */
.adp-chat-message {
    display: flex;
    margin-bottom: 15px;
}

.adp-chat-message.user {
    justify-content: flex-end;
}

.adp-chat-message.admin {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.adp-chat-message.user .message-content {
    background: #1e3a5f;
    color: white;
}

.adp-chat-message.admin .message-content {
    background: #e2e8f0;
    color: #1e3a5f;
}

.message-text {
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.adp-chat-message.admin .message-time {
    text-align: left;
}

/* Estados especiais */
.adp-chat-empty {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
}

.adp-chat-loading {
    text-align: center;
    color: #6b7280;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.adp-chat-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #1e3a5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.adp-chat-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    margin: 10px 0;
}

/* Área de input */
.adp-chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.adp-chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    resize: none;
    max-height: 100px;
    min-height: 40px;
    outline: none;
    transition: border-color 0.2s;
}

.adp-chat-input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.adp-chat-send {
    background: #1e3a5f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 16px;
}

.adp-chat-send:hover:not(:disabled) {
    background: #152d47;
}

.adp-chat-send:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Animações */
.new-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FIM DOS ESTILOS DO CHAT ===== */

/* Login e Ativação */

/* === ADMIN CHAT STYLES === */

/* Container Principal */
.adp-chat-admin-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header do Chat Admin */
.adp-chat-admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.adp-chat-admin-header h2 {
    margin: 0 0 15px 0;
    color: white;
}

.adp-chat-stats {
    display: flex;
    gap: 30px;
}

.adp-stat-item {
    text-align: center;
}

.adp-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.adp-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Filtros */
.adp-chat-filters {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.adp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.adp-filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.adp-filter-group select {
    min-width: 150px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Layout Principal */
.adp-chat-layout {
    display: flex;
    height: 600px;
}

/* Painel de Conversas */
.adp-conversas-painel {
    width: 350px;
    border-right: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
}

.adp-conversas-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adp-conversas-header h3 {
    margin: 0;
    color: #2c3e50;
}

.adp-conversas-lista-admin {
    flex: 1;
    overflow-y: auto;
}

/* Item de Conversa Admin */
.adp-conversa-admin-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.adp-conversa-admin-item:hover {
    background: #f8f9fa;
}

.adp-conversa-admin-item.ativa {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.adp-conversa-admin-item.nao-lida {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.adp-conversa-admin-item.nao-lida::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #ff5722;
    border-radius: 50%;
}

.adp-conversa-admin-assunto {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adp-conversa-admin-proprietario {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.adp-conversa-admin-preview {
    color: #95a5a6;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.adp-conversa-admin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.adp-conversa-admin-data {
    color: #95a5a6;
}

.adp-conversa-admin-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.7rem;
}

.adp-status-aberta {
    background: #ffebee;
    color: #c62828;
}

.adp-status-respondida {
    background: #e8f5e8;
    color: #2e7d32;
}

.adp-status-fechada {
    background: #f5f5f5;
    color: #616161;
}

/* Painel de Chat */
.adp-chat-painel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Estado Vazio */
.adp-chat-vazio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.adp-chat-vazio-content {
    text-align: center;
    color: #95a5a6;
}

.adp-chat-vazio-content h3 {
    margin-bottom: 10px;
    color: #7f8c8d;
}

/* Chat Ativo */
.adp-chat-ativo {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header da Conversa Ativa */
.adp-chat-ativo-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adp-conversa-info-header h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.adp-conversa-meta-header {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.adp-conversa-meta-header span {
    margin-right: 15px;
}

.adp-conversa-acoes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.adp-status-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Container de Mensagens Admin */
.adp-mensagens-admin-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

/* Mensagens Admin */
.adp-mensagem-admin {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.adp-mensagem-admin.proprietario {
    justify-content: flex-start;
}

.adp-mensagem-admin.admin {
    justify-content: flex-end;
}

.adp-mensagem-admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.adp-mensagem-admin.proprietario .adp-mensagem-admin-avatar {
    background: #3498db;
    margin-right: 15px;
}

.adp-mensagem-admin.admin .adp-mensagem-admin-avatar {
    background: #e74c3c;
    margin-left: 15px;
}

.adp-mensagem-admin-conteudo {
    max-width: 70%;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.adp-mensagem-admin.admin .adp-mensagem-admin-conteudo {
    background: #e3f2fd;
}

.adp-mensagem-admin-texto {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #2c3e50;
}

.adp-mensagem-admin-meta {
    font-size: 0.8rem;
    color: #95a5a6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container de Resposta */
.adp-resposta-container {
    border-top: 1px solid #e1e5e9;
    background: white;
}

.adp-resposta-header {
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e5e9;
    color: #2c3e50;
    font-size: 0.9rem;
}

.adp-resposta-input {
    padding: 15px 20px;
}

.adp-resposta-input textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 10px;
}

.adp-resposta-input textarea:focus {
    outline: none;
    border-color: #3498db;
}

.adp-resposta-acoes {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Respostas Rápidas */
.adp-respostas-rapidas {
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    max-height: 200px;
    overflow-y: auto;
}

.adp-resposta-rapida-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #e1e5e9;
    transition: background 0.3s;
}

.adp-resposta-rapida-item:hover {
    background: #e9ecef;
}

.adp-resposta-rapida-item:last-child {
    border-bottom: none;
}

/* Loading Admin */
.adp-loading-admin {
    padding: 40px 20px;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}

/* Adicionar loading states */
.adp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.adp-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorar responsividade */
/* Correção da contagem regressiva */
.adp-contagem-regressiva {
    background: linear-gradient(135deg, #2d4a6b 0%, #2d4a6b 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.adp-cronograma {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.adp-cronograma-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.adp-progresso-barra {
    background: rgba(255, 255, 255, 0.2);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.adp-progresso-preenchimento {
    background: #28a745;
    height: 100%;
    transition: width 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .adp-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .adp-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .adp-header h1 {
        font-size: 2rem;
    }
    
    .adp-chat-modal {
        padding: 10px;
    }
    
    .adp-chat-container {
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .adp-chat-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .message-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .adp-chat-input-area {
        padding: 15px;
    }
    
    .adp-chat-messages {
        padding: 15px;
    }
    
    .adp-chat-header {
        padding: 12px 15px;
    }
}

@media (max-width: 1024px) {
    .adp-chat-layout {
        flex-direction: column;
        height: auto;
    }
    
    .adp-conversas-painel {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #e1e5e9;
    }
    
    .adp-chat-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .adp-filter-group {
        width: 100%;
    }
    
    .adp-filter-group select {
        width: 100%;
    }
    
    .adp-chat-stats {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .adp-chat-admin-header {
        padding: 15px;
    }
    
    .adp-chat-filters {
        padding: 15px;
    }
    
    .adp-mensagem-admin-conteudo {
        max-width: 85%;
    }
    
    .adp-conversa-acoes {
        flex-direction: column;
        gap: 5px;
    }
}

/* Estilos para o painel administrativo */
.adp-admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.adp-admin-tabs {
    display: flex;
    border-top: 2px solid #2d4a6b;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.adp-admin-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.adp-admin-tab.active {
    color: #2196F3;
    border-bottom: 2px solid #2196F3;
}

.adp-admin-content {
    display: none;
}

.adp-admin-content.active {
    display: block;
}

.adp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.adp-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #2196F3;
    display: block;
}

.stat-label {
    color: #666;
    margin-top: 8px;
}

.adp-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.adp-table {
    width: 100%;
    border-collapse: collapse;
}

.adp-table th,
.adp-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.adp-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.ativo {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.inativo {
    background: #ffebee;
    color: #c62828;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.adp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.adp-modal.active {
    opacity: 1;
    visibility: visible;
}

.adp-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.adp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.adp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.adp-form-group {
    margin-bottom: 15px;
}

.adp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.adp-form-group input,
.adp-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.adp-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Estilos para toast de notificação */
.adp-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    display: none;
    min-width: 250px;
    text-align: center;
}

.adp-toast.show {
    transform: translateX(0);
}

.adp-toast.success {
    background-color: #28a745;
}

.adp-toast.error {
    background-color: #dc3545;
}

.adp-toast.warning {
    background-color: #ffc107;
    color: #212529;
}

.adp-toast-success {
    background: #4CAF50;
}

.adp-toast-error {
    background: #f44336;
}

.adp-toast-info {
    background: #2196F3;
}

@media (max-width: 768px) {
    .adp-admin-tabs {
        flex-wrap: wrap;
    }
    
    .adp-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .adp-table-container {
        overflow-x: auto;
    }
    
    .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Estilos para Gestão de Conteúdo */
.adp-tab-content {
    display: none;
}

.adp-tab-content.active {
    display: block;
}

.adp-etapas-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.adp-etapa-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.adp-etapa-item.pendente {
    border-color: #ffc107;
    background: #fff8e1;
}

.adp-etapa-item.em-andamento {
    border-color: #2196f3;
    background: #e3f2fd;
}

.adp-etapa-item.concluido {
    border-color: #4caf50;
    background: #e8f5e8;
}

.adp-etapa-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.adp-etapa-icone {
    font-size: 2em;
}

.adp-etapa-detalhes h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.adp-etapa-detalhes p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.status-etapa-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.adp-historico-obra {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.adp-evolucao-item {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.adp-progresso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.progresso-item {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.adp-boletos-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.adp-boleto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.adp-boleto-item.pago {
    border-color: #4caf50;
    background: #e8f5e8;
}

.adp-boleto-item.vencido {
    border-color: #f44336;
    background: #ffebee;
}

.adp-boleto-item.pendente {
    border-color: #ffc107;
    background: #fff8e1;
}

.boleto-info h4 {
    margin: 0 0 5px 0;
}

.boleto-info p {
    margin: 2px 0;
    font-size: 14px;
}

.boleto-acoes {
    display: flex;
    gap: 10px;
}

.adp-range {
    width: 100%;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .adp-etapa-item,
    .adp-boleto-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .adp-progresso-grid {
        grid-template-columns: 1fr;
    }
}