@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap');

:root {
    --primary: #0ea5e9;
    --dark: #0f172a;
    --surface: #ffffff;
    --muted: #6b7280;
}

html, body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background: #f7fbff;
    color: var(--dark);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: #f7fbff;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #0ea5e9 100%);
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-row {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e9f2;
    position: sticky;
    top: 0;
    z-index: 2;
}

.content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding-top: 0.5rem;
}

@media (max-width: 768px) {
    .page {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
}

.nav-wrapper {
    height: 100%;
}

.brand {
    color: #fff;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3rem;
    height: 2.3rem;
    color: white;
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(#ffffff, #ffffff);
    background-repeat: no-repeat;
    background-position:
        center calc(50% - 6px),
        center,
        center calc(50% + 6px);
    background-size:
        60% 2px,
        60% 2px,
        60% 2px;
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.32);
}

.nav-item {
    font-size: 0.95rem;
    padding-bottom: 0.35rem;
}

.nav-item .nav-link {
    color: rgba(255, 255, 255, 0.86);
    border-radius: 10px;
    height: 3rem;
    display: flex;
    align-items: center;
}

.nav-item .nav-link.active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
}

.nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

@media (min-width: 768px) {
    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 96px);
        overflow-y: auto;
    }
}

a, .btn-link {
    color: var(--primary);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    filter: brightness(0.95);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.15rem rgba(14, 165, 233, 0.35);
}

h1:focus {
    outline: none;
}

.validation-message {
    color: #e74c3c;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    background: #b32121;
}

.blazor-error-boundary::after {
    content: "Ocorreu um erro.";
}

.hero-portal {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.12));
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.hero-card {
    border: 1px solid #e5e9f2;
}

.card {
    border-radius: 1rem;
}

.card-header {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.card-footer {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

.table > :not(caption) > * > * {
    padding: 0.9rem;
}

code {
    background: #0f172a;
    color: #e0f2fe;
    padding: 0.15rem 0.35rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
}

.auth-page {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 1.5rem;
}
