:root {
    --primary: #0f96c9;
    --primary-dark: #0b7aa6;
    --primary-light: #e6f5fb;
    --brand-ink: #1c2430;
    --muted: #6c757d;
    --radius: 12px;
}

html, body {
    height: 100%;
}

body {
    background: #f3f5f7;
}

/* ── App chrome ─────────────────────────────────────────────── */

.partner-app {
    min-height: 100dvh;
    background: #f3f5f7;
}

.partner-header {
    background: linear-gradient(135deg, var(--brand-ink) 0%, #263244 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.partner-header-inner {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 1.25rem;
    max-width: 1320px;
    margin: 0 auto;
}

.partner-header-logo {
    height: 34px;
    width: auto;
    display: block;
}

.partner-header-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.25);
}

.partner-header-brand-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.partner-header-partner-logo {
    height: 30px;
    width: auto;
    border-radius: 6px;
    background: #fff;
    padding: 2px 6px;
}

.partner-header-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.partner-header-logout {
    margin-left: auto;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.partner-header-logout:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.partner-nav {
    background: #fff;
    border-bottom: 1px solid #e5e8ee;
}

.partner-nav-inner {
    display: flex;
    gap: 0.25rem;
    padding: 0 1.25rem;
    max-width: 1320px;
    margin: 0 auto;
    overflow-x: auto;
}

.partner-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 0.9rem;
    color: #566072;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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

.partner-nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.partner-main {
    padding-bottom: 2rem;
    max-width: 1320px;
    margin: 0 auto;
}

/* ── Cards & buttons: soften the default Bootstrap look ───────── */

.partner-main .card {
    border: 1px solid #e9ecf1;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 1px 2px rgba(16, 24, 40, 0.03);
}

.partner-main .table thead th {
    color: #566072;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom-width: 1px;
    background: #fafbfc;
}

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

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.partner-main a:not(.btn) {
    color: var(--primary);
}

.login-card .input-group-text {
    background: #fff;
    color: var(--primary);
    border-color: #dde1e8;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 150, 201, 0.18);
}

/* ── Logo uploader (Profile page) ──────────────────────────────── */

.logo-uploader {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-uploader-preview {
    width: 96px;
    height: 96px;
    border-radius: var(--radius);
    background: #fafbfc;
    border: 1.5px dashed #d6dae2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-uploader-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-uploader-preview i {
    font-size: 1.75rem;
    color: #c3c9d4;
}

.logo-uploader-actions .btn {
    margin-right: 0.5rem;
}

/* ── Login page ─────────────────────────────────────────────── */

.login-body {
    min-height: 100dvh;
    background: linear-gradient(135deg, var(--brand-ink) 0%, #263244 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1rem;
}

.login-logo {
    height: 56px;
    width: auto;
    margin-bottom: 0.75rem;
}

.login-wrapper {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-brand {
    text-align: center;
    color: #fff;
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}

.login-subtitle {
    color: #c7c9d9;
    font-size: 0.85rem;
    margin: 0;
}

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

.login-footer {
    color: #c7c9d9;
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

/* ── Blazor error UI ────────────────────────────────────────── */

#blazor-error-ui {
    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;
}
