/*
   ProjectONus Pro Test UI
   Separate desktop-only theme file inspired by modern project-management
   software patterns: left navigation, compact controls, clear cards, and
   restrained blue/teal accents. The classic interface remains the default.
*/

@media (min-width: 761px) {
    body.proTestTheme {
        --bg: #eef3f8;
        --card: #ffffff;
        --text: #172033;
        --muted: #687689;
        --primary: #0b73b9;
        --primary-dark: #075f9a;
        --danger: #c93232;
        --border: #d6dee9;
        --shadow: 0 1px 3px rgba(16, 33, 55, .08);
        font-family: "Segoe UI", Arial, sans-serif;
        background:
            linear-gradient(180deg, #f7fafc 0, #eef3f8 260px),
            var(--bg);
    }

    body.proTestTheme.dark {
        --bg: #0e1726;
        --card: #111c2d;
        --text: #e7edf5;
        --muted: #9dafc4;
        --primary: #3aa2e8;
        --primary-dark: #1686d2;
        --border: #26364b;
        background: #0e1726;
    }

    body.proTestTheme header {
        position: fixed;
        inset: 0 auto 0 0;
        width: 264px;
        height: 100vh;
        padding: 22px 16px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        background: #102137;
        color: #f8fbff;
        box-shadow: 8px 0 24px rgba(16, 33, 55, .18);
        overflow-y: auto;
    }

    body.proTestTheme header .brand {
        padding: 2px 4px 18px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(255,255,255,.12);
        font-size: 24px;
        line-height: 1.1;
        letter-spacing: 0;
    }

    body.proTestTheme header > div:last-child {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    body.proTestTheme header a,
    body.proTestTheme header span.desktop-only {
        margin: 0;
        padding: 10px 12px;
        border-radius: 7px;
        color: #dbe7f6;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
    }

    body.proTestTheme header span.desktop-only {
        color: #9fb4cc;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: .06em;
    }

    body.proTestTheme header a:hover {
        background: #183657;
        color: #ffffff;
    }

    body.proTestTheme header a.ui-theme-link {
        margin-top: 10px;
        background: #1f8a7a;
        color: #ffffff;
        text-align: center;
    }

    body.proTestTheme main {
        max-width: none;
        margin: 0 0 0 264px;
        padding: 24px 30px 44px;
    }

    body.proTestTheme h1,
    body.proTestTheme h2,
    body.proTestTheme h3 {
        margin-top: 0;
        color: var(--text);
        letter-spacing: 0;
    }

    body.proTestTheme h1 {
        font-size: 30px;
        font-weight: 750;
    }

    body.proTestTheme h2 {
        font-size: 21px;
        font-weight: 750;
    }

    body.proTestTheme h3 {
        font-size: 17px;
        font-weight: 750;
    }

    body.proTestTheme .card {
        border-radius: 8px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 18px;
        margin-bottom: 16px;
    }

    body.proTestTheme .card .card {
        box-shadow: none;
        background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,253,.98));
    }

    body.proTestTheme.dark .card .card {
        background: #132033;
    }

    body.proTestTheme .grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 14px;
    }

    body.proTestTheme #projects > .grid {
        grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    }

    body.proTestTheme #projects .card .card,
    body.proTestTheme #projects .grid > .card {
        position: relative;
        transition: border-color .15s, transform .15s, box-shadow .15s;
    }

    body.proTestTheme #projects .grid > .card:hover {
        border-color: #9bc7e7;
        box-shadow: 0 8px 22px rgba(16, 33, 55, .11);
        transform: translateY(-1px);
    }

    body.proTestTheme input,
    body.proTestTheme textarea,
    body.proTestTheme select {
        min-height: 40px;
        padding: 9px 11px;
        border-radius: 6px;
        font-size: 14px;
        background: var(--card);
    }

    body.proTestTheme button,
    body.proTestTheme .btn-link {
        width: auto;
        min-height: 40px;
        margin: 5px 4px 5px 0;
        padding: 9px 14px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 750;
        box-shadow: none;
    }

    body.proTestTheme .btn-secondary {
        background: #506177 !important;
    }

    body.proTestTheme .btn-danger {
        background: var(--danger) !important;
    }

    body.proTestTheme .dark-toggle {
        width: 100%;
        margin: 12px 0 0;
        background: #263d5c !important;
    }

    body.proTestTheme .backButton {
        min-height: 36px;
        padding: 7px 12px;
        border-radius: 6px;
        background: #506177 !important;
    }

    body.proTestTheme .flash {
        border-left: 4px solid var(--primary);
        background: #eaf4fb;
        color: #17324d;
        border-radius: 7px;
        box-shadow: none;
    }

    body.proTestTheme.dark .flash {
        background: #14253b;
        color: #d9e8f7;
    }

    body.proTestTheme img.photo,
    body.proTestTheme .photo {
        border-radius: 8px;
    }
}
