/* Kokonat — System ofertówek
 * Admin shell styles. Editor + client view + dashboard styles
 * are added in their respective build tasks.
 */

:root {
    --pink:   #e86ead;
    --purple: #732fb9;
    --deep:   #27104f;
    --orange: #e74d24;
    --cream:  #fdf6ec;
    --white:  #fff;
    --grey:   #6b6580;
    --light:  #f4f0ea;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--deep);
    min-height: 100vh;
    overflow-x: hidden;
}

.heading { font-family: "ivypresto-display", "Playfair Display", Georgia, serif; font-weight: 600; }

/* -------------------------------------------------------------------------- */
/* Top bar                                                                    */
/* -------------------------------------------------------------------------- */

.topbar {
    background: var(--deep);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    gap: 24px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-brand .logo-mark {
    width: 22px; height: 22px;
    background: var(--pink);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}
.topbar-brand .logo-text {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 18px;
}
.topbar-sub {
    margin-left: 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.topbar-nav { display: flex; gap: 18px; }
.topbar-link {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.topbar-link:hover { color: var(--pink); border-bottom-color: var(--pink); }
.topbar-user { display: flex; align-items: center; gap: 14px; }
.topbar-username { font-size: 13px; color: rgba(255,255,255,0.75); }
.topbar-logout { margin: 0; }
.topbar-logout-btn {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.topbar-logout-btn:hover { background: var(--pink); color: var(--deep); border-color: var(--pink); }

.main { min-height: calc(100vh - 60px); }

/* -------------------------------------------------------------------------- */
/* Login                                                                      */
/* -------------------------------------------------------------------------- */

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(39, 16, 79, 0.12);
}
.login-card .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.login-card .logo-mark {
    width: 28px; height: 28px;
    background: var(--pink);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}
.login-card .logo-text {
    font-family: "ivypresto-display", "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 22px;
}
.login-card h1 { font-size: 26px; margin-bottom: 6px; }
.login-card .lead { color: var(--grey); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.login-card .alert {
    background: rgba(231, 77, 36, 0.1);
    color: var(--orange);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    border-left: 3px solid var(--orange);
}
.login-card .field { margin-bottom: 16px; }
.login-card label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 6px;
    font-weight: 600;
}
.login-card input {
    width: 100%;
    background: var(--cream);
    border: 1px solid var(--light);
    padding: 12px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--deep);
    transition: border-color 0.15s, background 0.15s;
}
.login-card input:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--white);
}

.btn-primary {
    display: inline-block;
    width: 100%;
    margin-top: 12px;
    background: var(--deep);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--purple); }

/* -------------------------------------------------------------------------- */
/* Dashboard placeholder                                                      */
/* -------------------------------------------------------------------------- */

.dashboard { padding: 40px; max-width: 1200px; margin: 0 auto; }
.dashboard h1 { font-size: 32px; margin-bottom: 6px; }
.dashboard .ds { color: var(--grey); font-size: 13px; margin-bottom: 32px; }

.dash-stats-placeholder {
    background: var(--white);
    border: 1px dashed var(--light);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}
.placeholder-note {
    color: var(--grey);
    font-size: 13px;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 20px;
}
.placeholder-actions .btn-primary { width: auto; padding: 12px 28px; }
