/* =====================================================
   Arquivo: geral.css
   Responsabilidade: Estilos BASE globais (reset + padrão)
   NÃO definir layout, largura fixa ou flex aqui
===================================================== */

/* ===== RESET BÁSICO ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CORPO ===== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.5;
    padding: 20px;
}

/* ===== LINKS ===== */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== TEXTOS ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 12px;
    font-weight: 600;
}

p {
    margin-bottom: 10px;
}

/* ===== FORMULÁRIOS (BASE) ===== */
form {
    margin-bottom: 20px;
}

/* Labels */
label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

/* Inputs, selects e textarea (SEM largura fixa) */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select,
textarea {
    padding: 8px 10px;
    font-size: 14px;

    border: 1px solid #ccc;
    border-radius: 6px;

    background-color: #fff;
    color: #333;

    width: auto;        /* 🔥 NÃO TRAVAR LARGURA */
    max-width: 100%;

    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Foco */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

/* Placeholder */
input::placeholder,
textarea::placeholder {
    color: #999;
}

/* ===== BOTÕES (BASE) ===== */
button,
input[type="submit"],
input[type="button"] {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;

    border: none;
    border-radius: 6px;

    cursor: pointer;

    background-color: #007bff;
    color: #fff;

    transition: background-color 0.2s;
}

/* Hover botão */
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: #0056b3;
}

/* ===== TABELAS (BASE) ===== */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    font-size: 14px;
}

/* Cabeçalho */
thead th {
    background-color: #343a40;
    color: #fff;
    font-weight: 600;
}

/* ===== UTILITÁRIOS SIMPLES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}
