/*
|--------------------------------------------------------------------------
| Appbild Final UI
|--------------------------------------------------------------------------
|
| Közös megjelenés:
| - kompakt PC-first
| - sötétkék / fehér
| - egységes fejléc
| - egységes panelek
| - egységes gombhierarchia
|--------------------------------------------------------------------------
*/

:root {
    --ab-bg: #030d19;
    --ab-shell: #071a2f;
    --ab-header: #051426;

    --ab-panel: #0a223b;
    --ab-panel-dark: #071c31;
    --ab-panel-soft: #102f4b;

    --ab-border: rgba(255,255,255,.09);
    --ab-border-strong: #315573;

    --ab-text: #ffffff;
    --ab-muted: #819bb3;
    --ab-muted-2: #67839d;

    --ab-blue: #123754;
    --ab-blue-hover: #194869;

    --ab-danger: rgba(140,32,42,.25);
    --ab-danger-hover: rgba(175,38,50,.38);

    --ab-success: #d9ffeb;
    --ab-success-text: #063c26;

    --ab-radius-shell: 17px;
    --ab-radius-panel: 12px;
    --ab-radius-button: 8px;
}


/* ==========================================================
   GLOBAL
   ========================================================== */

html,
body {
    background:
        radial-gradient(
            circle at top left,
            #173e6c 0,
            #071a30 34%,
            #030d19 76%
        ) fixed !important;
}

body {
    color: var(--ab-text);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
a {
    transition:
        background .16s ease,
        border-color .16s ease,
        transform .12s ease,
        opacity .16s ease;
}

button:active,
a:active {
    transform: translateY(1px);
}


/* ==========================================================
   SHELL
   ========================================================== */

.shell {
    border:
        1px solid var(--ab-border) !important;

    border-radius:
        var(--ab-radius-shell) !important;

    background:
        var(--ab-shell) !important;

    box-shadow:
        0 24px 70px rgba(0,0,0,.30);
}


/* ==========================================================
   HEADER
   ========================================================== */

.topbar {
    min-height: 68px !important;

    padding:
        11px 20px !important;

    background:
        var(--ab-header) !important;

    border-bottom:
        1px solid rgba(255,255,255,.07) !important;
}

.brand,
.top-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo {
    width: 44px !important;
    height: 44px !important;

    min-width: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px !important;

    background:
        #ffffff !important;

    color:
        #082c50 !important;

    font-size:
        21px !important;

    font-weight:
        900 !important;

    box-shadow:
        0 3px 12px rgba(0,0,0,.12);
}

.brand-name,
.brand {
    font-weight: 850;
}

.brand-sub,
.brand-small {
    margin-top: 2px;

    color:
        #7390aa !important;

    font-size:
        9px !important;

    letter-spacing:
        .04em;

    text-transform:
        uppercase;
}


/* ==========================================================
   TOP ACTIONS
   ========================================================== */

.top-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;

    gap: 8px !important;
}


/* ==========================================================
   HEADINGS
   ========================================================== */

h1 {
    margin-top: 0;

    color:
        #ffffff;

    font-size:
        23px !important;

    line-height:
        1.15;

    font-weight:
        850 !important;

    letter-spacing:
        -.015em;
}

.description {
    color:
        var(--ab-muted) !important;

    font-size:
        11px !important;

    line-height:
        1.55;
}


/* ==========================================================
   PANELS
   ========================================================== */

.panel {
    border:
        1px solid var(--ab-border) !important;

    border-radius:
        var(--ab-radius-panel) !important;

    background:
        var(--ab-panel) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.015);
}

.panel-title {
    color:
        #ffffff !important;

    font-size:
        12px !important;

    font-weight:
        850 !important;
}


/* ==========================================================
   FORM ELEMENTS
   ========================================================== */

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    border:
        1px solid #365e7d !important;

    border-radius:
        9px !important;

    background:
        #071c31 !important;

    color:
        #ffffff !important;

    outline: none;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color:
        #5793bf !important;

    box-shadow:
        0 0 0 3px rgba(67,137,188,.12);
}


/* ==========================================================
   PRIMARY BUTTONS
   ========================================================== */

.upload-button,
.save-button,
.ai-button,
.export-button,
.login-button {
    border:
        1px solid rgba(255,255,255,.80) !important;

    border-radius:
        var(--ab-radius-button) !important;

    background:
        #ffffff !important;

    color:
        #082c50 !important;

    font-weight:
        900 !important;

    box-shadow:
        0 3px 10px rgba(0,0,0,.08);
}

.upload-button:hover,
.save-button:hover,
.ai-button:hover,
.export-button:hover,
.login-button:hover {
    background:
        #eaf5ff !important;
}


/* ==========================================================
   SUCCESS / ACCEPT
   ========================================================== */

.accept-button {
    border:
        1px solid #b7efd0 !important;

    border-radius:
        var(--ab-radius-button) !important;

    background:
        var(--ab-success) !important;

    color:
        var(--ab-success-text) !important;

    font-weight:
        900 !important;
}

.accept-button:hover {
    background:
        #c6f6db !important;
}


/* ==========================================================
   SECONDARY BUTTONS
   ========================================================== */

.back,
.logout,
.archive-button,
.archive-link,
.new-session-button,
.continue-button,
.small-button,
.edit-ai-button,
.email-button {
    border:
        1px solid var(--ab-border-strong) !important;

    border-radius:
        var(--ab-radius-button) !important;

    background:
        var(--ab-blue) !important;

    color:
        #ffffff !important;

    text-decoration:
        none !important;

    font-weight:
        800 !important;
}

.back:hover,
.logout:hover,
.archive-button:hover,
.archive-link:hover,
.new-session-button:hover,
.continue-button:hover,
.small-button:hover,
.edit-ai-button:hover,
.email-button:hover {
    background:
        var(--ab-blue-hover) !important;
}


/* ==========================================================
   DOWNLOAD
   ========================================================== */

.download {
    border:
        1px solid rgba(255,255,255,.8) !important;

    border-radius:
        var(--ab-radius-button) !important;

    background:
        #ffffff !important;

    color:
        #082c50 !important;

    font-weight:
        900 !important;

    text-decoration:
        none !important;
}

.download:hover {
    background:
        #eaf5ff !important;
}


/* ==========================================================
   DELETE
   ========================================================== */

.delete-button,
.remove-button {
    border:
        1px solid rgba(255,105,115,.35) !important;

    border-radius:
        var(--ab-radius-button) !important;

    background:
        var(--ab-danger) !important;

    color:
        #ffd5d8 !important;

    font-weight:
        850 !important;
}

.delete-button:hover,
.remove-button:hover {
    background:
        var(--ab-danger-hover) !important;
}


/* ==========================================================
   AI CONTROLS
   ========================================================== */

.subject-lock,
.pixel-lock {
    border:
        1px solid #315a78 !important;

    border-radius:
        10px !important;

    background:
        #09243d !important;
}

.subject-lock:hover,
.pixel-lock:hover {
    background:
        #0d304e !important;
}

.subject-lock-text,
.pixel-lock-title {
    font-weight:
        850 !important;
}

.subject-lock-help,
.pixel-lock-help {
    color:
        #7997b1 !important;
}


/* ==========================================================
   PREVIEWS
   ========================================================== */

.preview,
.crop-stage {
    border-radius:
        10px !important;
}

.preview img,
.crop-stage img {
    border-radius:
        7px;
}


/* ==========================================================
   ARCHIVE
   ========================================================== */

.archive-list {
    gap:
        9px !important;
}

.archive-row {
    border:
        1px solid var(--ab-border) !important;

    border-radius:
        10px !important;

    background:
        var(--ab-panel) !important;
}

.archive-row:hover {
    border-color:
        rgba(100,160,205,.28) !important;

    background:
        #0c2743 !important;
}

.archive-actions {
    gap:
        6px !important;
}

.thumb {
    border:
        1px solid rgba(255,255,255,.05);
}


/* ==========================================================
   FLASH
   ========================================================== */

.flash-success {
    border:
        1px solid rgba(105,218,163,.27) !important;

    background:
        rgba(25,113,76,.20) !important;

    color:
        #d7ffec !important;
}

.flash-error {
    border:
        1px solid rgba(255,110,110,.28) !important;

    background:
        rgba(145,32,32,.22) !important;

    color:
        #ffd4d4 !important;
}


/* ==========================================================
   REMOVE UNNECESSARY TECHNICAL FEEL
   ========================================================== */

.archive-note {
    border-radius:
        9px !important;

    color:
        #8faac1 !important;

    font-size:
        9px !important;

    line-height:
        1.55;
}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

* {
    scrollbar-width:
        thin;

    scrollbar-color:
        #31536f
        #07182a;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background:
        #07182a;
}

::-webkit-scrollbar-thumb {
    border-radius:
        10px;

    background:
        #31536f;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 850px) {

    .topbar {
        padding:
            10px 13px !important;
    }

    .top-actions {
        flex-wrap: wrap;
    }

    h1 {
        font-size:
            21px !important;
    }

    .archive-row {
        grid-template-columns:
            78px 1fr !important;
    }

    .archive-actions {
        justify-content:
            flex-start !important;

        flex-wrap:
            wrap;
    }

}


/* ==========================================================
   SMALL POLISH
   ========================================================== */

button,
.back,
.archive-button,
.archive-link,
.new-session-button,
.download {
    min-height:
        36px;
}

small,
.meta {
    color:
        var(--ab-muted-2) !important;
}


/* APPBILD MODULE DASHBOARD V2 */

.module-home {
    padding: 28px !important;
}

.module-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 22px;
}

.module-kicker {
    margin-bottom: 7px;

    color: #5d8daf;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .14em;
}

.module-intro {
    max-width: 630px;
}

.module-status {
    flex: 0 0 auto;

    padding: 8px 11px;

    border: 1px solid rgba(99,211,157,.20);
    border-radius: 20px;

    background: rgba(29,116,78,.16);

    color: #9ee8c1;

    font-size: 9px;
    font-weight: 800;
}

.module-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}

.module-card {
    min-height: 265px;

    display: flex;
    flex-direction: column;

    padding: 22px;

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #0c2947 0%,
            #092038 100%
        );

    color: #ffffff;

    text-decoration: none;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}

.module-card:hover {
    border-color: rgba(92,157,205,.42);

    background:
        linear-gradient(
            145deg,
            #103456 0%,
            #0b2742 100%
        );

    transform: translateY(-2px);
}

.module-card-shot {
    background:
        linear-gradient(
            145deg,
            #0c304d 0%,
            #09243b 100%
        );
}

.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
}

.module-symbol {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;

    background: #071a2f;

    font-size: 23px;
    font-weight: 900;
}

.module-badge {
    padding: 5px 8px;

    border-radius: 20px;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .04em;
}

.module-badge-ready {
    background: rgba(35,129,88,.20);
    color: #9fe4bf;
}

.module-badge-new {
    background: rgba(38,113,167,.25);
    color: #a9d9ff;
}

.module-card-title {
    margin-bottom: 9px;

    font-size: 18px;
    font-weight: 900;
}

.module-card-description {
    max-width: 480px;

    color: #8ca7bd;

    font-size: 10px;
    line-height: 1.7;
}

.module-features {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 17px;
}

.module-features span {
    padding: 5px 7px;

    border-radius: 6px;

    background: rgba(255,255,255,.055);

    color: #9ab6cb;

    font-size: 8px;
    font-weight: 700;
}

.module-open {
    margin-top: auto;
    padding-top: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #ffffff;

    font-size: 10px;
    font-weight: 900;
}

.module-open span {
    font-size: 16px;
}

.module-footer-note {
    margin-top: 14px;

    display: flex;
    gap: 24px;

    padding: 12px 15px;

    border-radius: 9px;

    background: rgba(10,34,59,.62);

    color: #7894ab;

    font-size: 9px;
}

.module-footer-note strong {
    color: #a9c2d5;
}

@media (max-width: 800px) {

    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .module-footer-note {
        flex-direction: column;
        gap: 5px;
    }

}
