:root {
    --sidebar-width: 260px;
    --header-height: 56px;
    --itapevi-green: #2E7D5E;
    --itapevi-green-dark: #236b4d;
    --itapevi-input-border: #a8d5e5;
    --itapevi-input-bg: #f0f8fc;
    /* Fundo login: degradê vertical verde */
    --itapevi-bg-dark: #2D6C3B;
    --itapevi-bg-light: #3A8E4C;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f8f9fa;
}

/* ========== Tela de Login Itapevi Saúde ========== */
.login-page {
    min-height: calc(100vh + 4rem);
    margin: -2rem -15px -2rem -15px;
    background: linear-gradient(180deg, var(--itapevi-bg-dark) 0%, var(--itapevi-bg-light) 35%, var(--itapevi-bg-light) 65%, var(--itapevi-bg-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Efeito 3D no logo */
.login-logo-3d {
    perspective: 600px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.1),
        0 10px 20px rgba(0,0,0,0.12),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    transform: rotateY(-8deg) rotateX(6deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-logo-3d:hover {
    transform: rotateY(-4deg) rotateX(4deg) scale(1.02);
    box-shadow:
        0 8px 16px rgba(0,0,0,0.15),
        0 16px 32px rgba(0,0,0,0.18),
        0 0 0 1px rgba(255,255,255,0.6) inset;
}

.login-logo-3d img {
    transform: translateZ(8px);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.login-title {
    color: var(--itapevi-green);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-card .form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.login-card .form-control {
    background: var(--itapevi-input-bg);
    border: 1px solid var(--itapevi-input-border);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
}

.login-card .form-control:focus {
    border-color: var(--itapevi-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 94, 0.15);
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap .form-control {
    padding-right: 2.75rem;
}

.login-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
}

.login-password-toggle:hover {
    color: var(--itapevi-green);
}

.btn-acessar {
    background: var(--itapevi-green);
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-acessar:hover {
    background: var(--itapevi-green-dark);
}

.login-restrito {
    font-size: 0.8rem;
    color: #495057;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-restrito strong {
    color: #212529;
}

.login-esqueci-wrap {
    text-align: right;
    margin-top: 0.25rem;
}

.login-esqueci {
    font-size: 0.85rem;
    color: #0d6efd;
    text-decoration: none;
    display: inline-block;
}

.login-esqueci:hover {
    text-decoration: underline;
    color: #0a58ca;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

.navbar-brand {
    font-weight: 600;
}

#view {
    min-height: 60vh;
}

.card-prontuario {
    border-left: 4px solid #0d6efd;
}

.soap-section {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.soap-section label {
    font-weight: 600;
    color: #475569;
}

.agenda-dia {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.fila-item {
    border-left: 4px solid #198754;
}

.fila-item.pendente {
    border-left-color: #ffc107;
}

.table-auditoria td {
    font-size: 0.9rem;
}
