/*
|--------------------------------------------------------------------------
| CampusBD AI — Visual Correction P1
|--------------------------------------------------------------------------
| 1. Admin V2 desktop double sidebar-offset correction.
| 2. End User V3 short-height composer/quick-card clearance.
|
| No API, JS contract, RBAC or database behavior is changed.
*/

/* =====================================================================
   ADMIN — REMOVE DOUBLE SIDEBAR OFFSET
   ===================================================================== */

/*
The existing Admin shell already allocates the sidebar in layout.
Admin V2 added an additional desktop margin-left, producing the
second sidebar-width blank gap visible in browser screenshots.
*/

@media (min-width: 901px) {

    .admin-main {
        margin-left: 0 !important;
        min-width: 0 !important;
    }

    .admin-content {
        width: 100%;
        max-width: 1540px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .topbar {
        width: 100%;
    }
}

/* Keep mobile behavior explicit and unchanged. */

@media (max-width: 900px) {

    .admin-main {
        margin-left: 0 !important;
    }
}

/* =====================================================================
   END USER — COMPOSER / EMPTY STATE CLEARANCE
   ===================================================================== */

/*
On normal laptop-height browser viewports the fixed composer occupies
the lower workspace while the empty-state quick cards are still in the
same visual zone. Compact only the empty-state presentation.
*/

@media (min-width: 761px) and (max-height: 920px) {

    .v3-messages {
        padding-top: 20px !important;
        padding-bottom: 196px !important;
    }

    .v3-empty {
        margin-top:
            clamp(
                10px,
                2.2vh,
                24px
            ) !important;
    }

    .v3-hero-mark {
        width: 56px !important;
        height: 56px !important;

        margin-bottom: 13px !important;

        border-radius: 18px !important;
    }

    .v3-empty h1 {
        font-size:
            clamp(
                28px,
                3vw,
                36px
            ) !important;
    }

    .v3-empty > p {
        margin:
            8px
            auto
            14px !important;

        line-height: 1.55 !important;
    }

    .v3-capability-strip {
        margin-bottom: 14px !important;
    }

    .v3-quick-grid {
        gap: 8px !important;
    }

    .v3-quick-card {
        min-height: 76px !important;
        padding: 11px 13px !important;
    }

    .v3-quick-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .v3-quick-copy span {
        margin-top: 2px !important;
    }

    .v3-composer-zone {
        padding-top: 18px !important;
    }

    .v3-composer textarea {
        min-height: 52px !important;
        padding-top: 12px !important;
    }

    .v3-composer-bottom {
        min-height: 45px !important;
    }
}

/*
Extra-short desktop/laptop viewport:
keep all four quick actions fully clear of the composer.
*/

@media (min-width: 761px) and (max-height: 780px) {

    .v3-empty {
        margin-top: 4px !important;
    }

    .v3-hero-mark {
        width: 50px !important;
        height: 50px !important;

        margin-bottom: 9px !important;
    }

    .v3-empty > p {
        margin-bottom: 9px !important;
    }

    .v3-capability-strip {
        margin-bottom: 9px !important;
    }

    .v3-quick-card {
        min-height: 68px !important;
    }

    .v3-composer-zone {
        padding-top: 12px !important;
    }
}

/* Mobile composer remains governed by the existing V3 mobile system. */

@media (max-width: 760px) {

    .v3-messages {
        padding-bottom: 178px;
    }
}
