:root {
    --sidebar-bg: #1e293b;
    --sidebar-width: 250px;
}

html, body {
    font-family: Vazirmatn, Tahoma, sans-serif;
    background: #f4f6fa;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1rem .75rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar .brand {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .25rem .5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.75);
    border-radius: .5rem;
    padding: .55rem .75rem;
    margin-bottom: .2rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.sidebar .nav-link.active {
    color: #fff;
    background: #0d6efd;
}

.sidebar .nav-link i {
    margin-left: .4rem;
}

.sidebar-footer {
    margin-top: auto;
}

.content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

@media (max-width: 767.98px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; }
    .sidebar .nav { flex-direction: row !important; flex-wrap: wrap; gap: .25rem; }
    .sidebar-footer { margin-top: .75rem; }
    .content { padding: 1rem; }
}

.card {
    border: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.stat-card:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, .12); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.table th { font-weight: 600; color: #64748b; font-size: .875rem; }

.business-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: .75rem;
}

.details dt { color: #64748b; font-weight: 500; }
.pre-line { white-space: pre-line; }

.product-card .card-img-top {
    height: 170px;
    object-fit: cover;
}

.placeholder-img {
    display: grid;
    place-items: center;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 2.5rem;
}

.owner-results {
    max-height: 260px;
    overflow-y: auto;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #1e293b, #334155);
}

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

#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: 2000;
}

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

h1:focus { outline: none; }
