/*
 * style.css
 * Folha de Estilos para o PHCRM
 * Autor: Gemini
 * Versão: 1.0
 */

/* --- Estilos Gerais --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    margin: 40px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 20px;
}

hr {
    border: none;
    border-top: 1px solid #ecf0f1;
    margin: 30px 0;
}

/* --- Estilos de Formulário --- */
form {
    display: grid;
    gap: 15px;
    padding: 20px 0;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #34495e;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
    outline: none;
    background-color: #ffffff;
}

textarea {
    resize: vertical;
}

/* --- Estilos de Botão Base --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    border: none;
    color: #ffffff;
    background-color: #3498db; /* Cor primária */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: #2980b9; /* Um pouco mais escuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- Variações de Botão --- */
.btn-secondary {
    background-color: #95a5a6; /* Cinza */
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c; /* Vermelho */
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-action {
    padding: 6px 12px; /* Botão menor para a tabela */
    font-size: 0.9em;
    margin-right: 5px; /* Espaço entre os botões de ação */
    box-shadow: none;
}

.btn-action:hover {
    transform: none; /* Sem animação de levantar */
}

/* --- Estilos para Mensagens de Status --- */
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}