:root {
    --primary: #111111;
    --secondary: #8b6f3d; /* dorado elegante */
    --background: #f6f6f6;
    --white: #ffffff;
    --text: #222222;
    --muted: #777777;
    --border: #dddddd;
    --danger: #b00020;

    --radius: 6px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 500;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

.login-container {
    max-width: 420px;
    margin: 10vh auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.login-container p {
    color: var(--muted);
    margin-bottom: 30px;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 15px;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.login-container button:hover {
    background: var(--secondary);
}

.error {
    background: #fbeaea;
    color: var(--danger);
    padding: 10px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    font-size: 14px;
}

header {
    background: var(--white);
    padding: 20px 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 20px;
}

header a {
    font-size: 14px;
}

form {
    max-width: 1100px;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

section {
    margin-bottom: 35px;
}

section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input[readonly] {
    background: #f1f1f1;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

table th, table td {
    border: 1px solid var(--border);
    padding: 10px;
    font-size: 14px;
}

table th {
    background: #fafafa;
    text-align: left;
}

button {
    padding: 10px 18px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

#addItem {
    background: var(--secondary);
    color: var(--white);
    margin-top: 10px;
}

button[type="submit"] {
    background: var(--primary);
    color: var(--white);
    margin-top: 20px;
}

button.remove {
    background: transparent;
    color: var(--danger);
    font-weight: bold;
}

@media (max-width: 768px) {
    form {
        margin: 20px;
        padding: 20px;
    }

    table th, table td {
        font-size: 12px;
    }
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-sistema {
    background: #007bff;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-sistema:hover {
    background: #0056b3;
}