:root {
    --bg-color: #F9F7F2;
    --primary-color: #7D8C7D;
    --secondary-color: #A3B18A;
    --accent-color: #D98B72;
    --text-color: #2F3E46;
    --light-text: #667A73;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: var(--primary-color);
}

.btn-link {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

main {
    min-height: 70vh;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    background-color: #e0ece0;
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

.alert-error {
    background-color: #fcece8;
    color: #c55d44;
    border-color: #eeb8a8;
}

/* Auth Pages */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.auth-container h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}
.stat-card.destaque {
    border: 1px solid rgba(125, 140, 125, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #fdfcf9 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card.destaque:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-card.destaque .stat-value {
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
}

.form-group input:focus {
    border-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #6a796a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(125, 140, 125, 0.3);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Treatment Status & Results */
.status-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-no_iniciado { background: #f3f4f6; color: #374151; }
.status-en_proceso { background: #dcfce7; color: #166534; }
.status-finalizado { background: #e0f2fe; color: #0369a1; }

.result-label {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .nav-links {
        gap: 1rem;
    }
}
