body {
    background: #f5f7fb;
    color: #1f2937;
    font-size: 0.96rem;
}

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

.sidebar {
    width: 270px;
    background: #0f172a;
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    min-height: 100vh;
}

.sidebar-brand {
    margin-bottom: 24px;
}

.brand-title {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,.82);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 6px;
}

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

.main-content {
    flex: 1;
    padding: 18px;
    min-width: 0;
}

.topbar {
    padding: 12px 18px;
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
}

.card,
.topbar {
    border: 0;
    border-radius: 22px;
}

.metric-card .metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    margin-top: 6px;
}

.preview-image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
}

.detail-grid .item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 16px;
    height: 100%;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

@media (max-width: 992px) {
    .app-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        position: static;
    }

    .main-content {
        padding: 12px;
    }
}
