* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 10px;
}

h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.5em;
}

h3 {
    color: #666;
    margin: 20px 0;
}

/* Seção de filtro */
.filtro-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

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

.filtro-section input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.filtro-section input:disabled {
    background-color: #e9e9e9;
    color: #666;
}

/* Seção de cadastro */
.cadastro-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-group input:disabled {
    background-color: #e9e9e9;
    color: #666;
}

/* Botões */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    opacity: 0.7;
}

.btn-salvar {
    background-color: #4CAF50;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-editar {
    background-color: #2196F3;
    color: white;
    padding: 6px 12px;
    margin: 0 5px;
    font-size: 14px;
}

.btn-excluir {
    background-color: #f44336;
    color: white;
    padding: 6px 12px;
    margin: 0 5px;
    font-size: 14px;
}

/* Observações */
.obs {
    display: block;
    margin-top: 10px;
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

.obs-geral {
    margin-top: 40px;
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    color: #856404;
    text-align: center;
}

.obs-geral p {
    margin: 5px 0;
}

/* Total de contatos */
.total-contatos {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
}

.total-contatos h3 {
    margin: 0;
    color: white;
    font-size: 1.5em;
}

.total-contatos .contador {
    font-size: 2em;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-left: 10px;
}

/* Tabela principal */
.tabela-section {
    overflow-x: auto;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

th {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

tr:hover {
    background-color: #f5f5f5;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Ações na tabela */
.acoes {
    white-space: nowrap;
}

.acoes button {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    font-size: 13px;
}

/* Exemplo de filtro */
.exemplo-filtro {
    margin-top: 40px;
    padding: 20px;
    background-color: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.exemplo-filtro h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.tabela-exemplo {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
}

.tabela-exemplo thead {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

/* Cards de estatística (opcional) */
.estatisticas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-bottom: 3px solid #4CAF50;
}

.card h4 {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.card .numero {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    th, td {
        padding: 10px;
        font-size: 14px;
    }
    
    .acoes button {
        padding: 4px 8px;
        font-size: 12px;
        margin: 2px;
    }
    
    .total-contatos h3 {
        font-size: 1.2em;
    }
    
    .total-contatos .contador {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 5px;
    }
    
    .acoes {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .acoes button {
        margin: 0;
        width: 100%;
    }
}

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

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Estilo para campos desabilitados */
input:disabled, button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hover effects (apenas visuais, já que os botões estão desabilitados) */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}