html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
}

/* ── Sidebar nav — override Bootstrap link defaults ─────────── */
.adm-sidebar .adm-nav-link {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    margin-bottom: 2px;
    line-height: 1.4;
}

.adm-sidebar .adm-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.adm-sidebar .adm-nav-link.active {
    background-color: rgba(53, 99, 233, 0.25) !important;
    color: #fff !important;
    font-weight: 500;
}

.adm-sidebar .adm-nav-link.active .adm-nav-icon {
    opacity: 1;
}

/* ── Botão Novo Tenant ─────────────────────────────────────── */
.adm-new-btn {
    background-color: #111827;
    color: #fff !important;
    border-color: #111827;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    text-decoration: none !important;
}

.adm-new-btn:hover {
    background-color: #1f2937;
    border-color: #1f2937;
    color: #fff !important;
}

/* ── Dashboard cards ─────────────────────────────────────────── */
.adm-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.adm-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.adm-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3563e9;
}

.adm-stat-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.adm-badge-green { background: #d1fae5; color: #065f46; }
.adm-badge-blue  { background: #dbeafe; color: #1e40af; }

.adm-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.adm-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.adm-stat-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.adm-stat-bar {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.adm-stat-bar-fill {
    height: 100%;
    background: #3563e9;
    border-radius: 2px;
}

.adm-bar-blue { background: #3563e9; }

/* ── Activity feed ────────────────────────────────────────────── */
.adm-activity {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.adm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.adm-dot-blue  { background: #3563e9; }
.adm-dot-red   { background: #ef4444; }
.adm-dot-green { background: #10b981; }

/* ── Bar chart ────────────────────────────────────────────────── */
.adm-chart-placeholder {
    height: 160px;
}

.adm-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 140px;
    padding-bottom: 20px;
    position: relative;
}

.adm-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}

.adm-bar {
    width: 100%;
    background: #dbeafe;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transition: background 0.2s;
}

.adm-bar.adm-bar-active {
    background: #3563e9;
}

.adm-bar-label {
    position: absolute;
    bottom: 0;
    font-size: 0.55rem;
    color: #9ca3af;
    white-space: nowrap;
    transform: translateX(-50%);
    left: 50%;
}

/* ── Login page ─────────────────────────────────────────────── */
.login-bg {
    background-color: #eef2f7;
}

.login-card {
    width: 100%;
    max-width: 440px;
}

.login-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.login-input-icon {
    background-color: #fff;
    border-right: 0;
    color: #adb5bd;
}

.login-input {
    border-left: 0;
}

.login-input:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.login-eye-btn {
    border: 1px solid #dee2e6;
    border-left: 0;
    background-color: #fff;
    color: #adb5bd;
    padding: 0 0.65rem;
}

.login-eye-btn:hover {
    color: #495057;
    background-color: #fff;
}

.login-link {
    color: #3563e9;
}

.login-footer {
    font-size: 0.7rem;
    color: #adb5bd;
}

/* ── Validation ─────────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* ── Blazor errors ──────────────────────────────────────────── */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 0.375rem;
}

.blazor-error-boundary::after {
    content: "Ocorreu um erro.";
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: 0.375rem;
}

.blazor-error-boundary::after {
    content: "Ocorreu um erro.";
}
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}