/**
 * Easer — tema inspirado no Volt Bootstrap 5 Dashboard
 * https://demo.themesberg.com/volt/pages/dashboard/dashboard.html
 */
:root {
    --easer-primary: #278EF5;
    --easer-primary-dark: #1F74D4;
    --easer-primary-soft: rgba(39, 142, 245, 0.12);
    --easer-body-bg: #f5f8fb;
    --easer-surface: #ffffff;
    --easer-border: #e9ecef;
    --easer-border-strong: #dee2e6;
    --easer-text: #31344b;
    --easer-text-muted: #6c757d;
    --easer-sidebar-width: 260px;
    --easer-radius: 0.5rem;
    --easer-radius-lg: 0.75rem;
    --easer-shadow-sm: 0 0.125rem 0.25rem rgba(49, 58, 70, 0.04);
    --easer-shadow: 0 0.5rem 1rem rgba(49, 58, 70, 0.08);
    --easer-font: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.easer-app {
    font-family: var(--easer-font);
    background: var(--easer-body-bg);
    color: var(--easer-text);
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.easer-layout {
    display: flex;
    min-height: 100vh;
}

.easer-sidebar {
    width: var(--easer-sidebar-width);
    flex-shrink: 0;
    background: var(--easer-surface);
    border-right: 1px solid var(--easer-border);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.easer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--easer-border);
    text-decoration: none;
    color: var(--easer-text);
}

.easer-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--easer-radius);
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(39, 142, 245, 0.2);
}

.easer-login-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.easer-brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.easer-brand-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--easer-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.easer-nav {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.easer-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--easer-text-muted);
    padding: 0.85rem 0.65rem 0.35rem;
}

.easer-nav a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--easer-radius);
    color: var(--easer-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.easer-nav a:hover {
    background: #f0f3f7;
    color: var(--easer-primary-dark);
}

.easer-nav a.active {
    background: var(--easer-primary-soft);
    color: var(--easer-primary-dark);
}

.easer-nav .guest-hint {
    font-size: 0.78rem;
    color: var(--easer-text-muted);
    padding: 0.65rem 0.75rem;
    line-height: 1.4;
    font-weight: 500;
}

.easer-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.easer-topbar {
    background: var(--easer-surface);
    border-bottom: 1px solid var(--easer-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: var(--easer-shadow-sm);
}

.easer-topbar-compact {
    padding: 0.65rem 1rem;
}

.easer-topbar h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--easer-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.easer-topbar p {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
    color: var(--easer-text-muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.easer-topbar-brand {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--easer-text);
    letter-spacing: -0.02em;
}

.easer-content {
    padding: 1.5rem;
    flex: 1;
}

.easer-card {
    background: var(--easer-surface);
    border: 1px solid var(--easer-border);
    border-radius: var(--easer-radius-lg);
    box-shadow: var(--easer-shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.easer-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--easer-primary);
    color: #fff !important;
    border: none;
    border-radius: var(--easer-radius);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(39, 142, 245, 0.25);
}

.easer-btn-primary:hover {
    background: var(--easer-primary-dark);
    color: #fff !important;
}

.easer-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--easer-surface);
    color: var(--easer-text) !important;
    border: 1px solid var(--easer-border-strong);
    border-radius: var(--easer-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.easer-btn-secondary:hover {
    border-color: var(--easer-primary);
    color: var(--easer-primary-dark) !important;
    background: var(--easer-primary-soft);
}

.easer-form-select,
.easer-top-select {
    border: 1px solid var(--easer-border-strong);
    border-radius: var(--easer-radius);
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    color: var(--easer-text);
    background: var(--easer-surface);
    font-family: inherit;
}

.easer-form-select:focus,
.easer-top-select:focus {
    outline: none;
    border-color: var(--easer-primary);
    box-shadow: 0 0 0 0.2rem rgba(39, 142, 245, 0.15);
}

/* Compat: classes antigas do layout */
.layout { display: flex; min-height: 100vh; }
body:not(.easer-app) .layout { font-family: var(--easer-font); }

.sidebar {
    width: var(--easer-sidebar-width);
    flex-shrink: 0;
    background: var(--easer-surface);
    border-right: 1px solid var(--easer-border);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--easer-border);
    color: var(--easer-text);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--easer-radius);
    color: var(--easer-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.menu a:hover {
    background: #f0f3f7;
    color: var(--easer-primary-dark);
}

.menu a.active {
    background: var(--easer-primary-soft);
    color: var(--easer-primary-dark);
}

.menu .guest-hint {
    font-size: 0.78rem;
    color: var(--easer-text-muted);
    padding: 0.65rem 0.75rem;
}

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: var(--easer-surface);
    border-bottom: 1px solid var(--easer-border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    box-shadow: var(--easer-shadow-sm);
}

.topbar-compact { padding: 0.65rem 1rem; }

.topbar h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--easer-text);
    margin: 0;
}

.topbar p {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
    color: var(--easer-text-muted);
}

.topbar-brand {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--easer-text);
}

.btn-main {
    text-decoration: none;
    background: var(--easer-primary);
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: var(--easer-radius);
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(39, 142, 245, 0.25);
    transition: background 0.15s;
}

.btn-main:hover {
    background: var(--easer-primary-dark);
    color: #fff !important;
}

.content-inner { padding: 1.5rem; flex: 1; }

.card {
    background: var(--easer-surface);
    border: 1px solid var(--easer-border);
    border-radius: var(--easer-radius-lg);
    box-shadow: var(--easer-shadow-sm);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.top-select {
    border: 1px solid var(--easer-border-strong);
    border-radius: var(--easer-radius);
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    background: var(--easer-surface);
    font-family: inherit;
}

@media (max-width: 991px) {
    .easer-layout,
    .layout { flex-direction: column; }

    .easer-sidebar,
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--easer-border);
    }

    .menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .easer-content,
    .content-inner { padding: 1rem; }
}
