/* ===============================
   SORELLA WEB SYSTEM - CSS BASE
   =============================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY GERAL */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* CABEÇALHO */
header {
    background: #111;
    color: #f9d342;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

    header strong {
        font-size: 20px;
        letter-spacing: 1px;
    }

    header nav a {
        color: #f9d342;
        text-decoration: none;
        margin-left: 15px;
        font-weight: 500;
    }

        header nav a:hover {
            text-decoration: underline;
        }

/* CONTEÚDO PRINCIPAL */
main {
    flex: 1;
    padding: 25px;
}

/* TÍTULOS */
h1, h2 {
    margin-bottom: 15px;
    color: #111;
}

/* BOTÕES */
button, .btn {
    background: #111;
    color: #f9d342;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

    button:hover, .btn:hover {
        background: #f9d342;
        color: #111;
    }

/* TABELAS */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th {
    background: #111;
    color: #f9d342;
    text-align: left;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

tr:hover td {
    background: #fafafa;
}

/* FORMULÁRIOS */
form {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 500px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: #f9d342;
        box-shadow: 0 0 5px rgba(249,211,66,0.5);
    }

/* LINKS */
a {
    color: #0066cc;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* RODAPÉ */
footer {
    text-align: center;
    padding: 15px;
    background: #111;
    color: #f9d342;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ALERTAS */
.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.alert-success {
    background: #e8f8ee;
    color: #2c662d;
    border-left: 5px solid #2c662d;
}

.alert-error {
    background: #fdecea;
    color: #a94442;
    border-left: 5px solid #a94442;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

        header nav {
            margin-top: 10px;
        }

    table, form {
        font-size: 13px;
    }
}
