:root {
    --background: #e9edf0;
    --panel: #ffffff;
    --panel-soft: #f0f3f5;
    --text: #111820;
    --muted: #5d6875;
    --line: #cfd7de;
    --brand: #caa65a;
    --brand-dark: #a8843b;
    --sidebar: #12191f;
    --sidebar-soft: #1c252d;
    --gold-soft: #efe3c4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

.hidden {
    display: none !important;
}

.login-screen {
    background: url('/assets/pozadina.png') center center / cover no-repeat;
    display: block;
    inset: 0;
    min-height: 100vh;
    padding: clamp(18px, 4vw, 64px);
    position: fixed;
    z-index: 10;
}

.login-card {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 8px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(255, 255, 255, 0.16);
    display: grid;
    gap: 18px;
    min-height: 430px;
    padding: clamp(22px, 3vw, 38px);
    position: absolute;
    right: clamp(36px, 5.5vw, 108px);
    top: 50%;
    transform: translateY(-50%);
    width: min(370px, 28vw);
}

.login-copy {
    display: grid;
    gap: 8px;
    margin-bottom: 4px;
}

.login-card strong {
    color: #101820;
    font-size: 30px;
    line-height: 1.1;
}

.login-card span,
.error-text {
    color: #3f4c57;
}

.error-text {
    color: #b42318;
    margin: 0;
    min-height: 20px;
}

.login-card label {
    color: #17212b;
    display: grid;
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
}

.login-card input {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.login-footer {
    bottom: 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0;
    position: fixed;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    transform: translateX(-50%);
    width: min(90vw, 720px);
}

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

.app-shell {
    display: grid;
    background:
        radial-gradient(circle at top right, rgba(202, 166, 90, 0.18), transparent 34%),
        linear-gradient(135deg, #e8ecef 0%, #f7f8f9 52%, #ece4d4 100%);
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(18, 25, 31, 0.96), rgba(12, 17, 22, 0.98)),
        #12191f;
    color: #f8fafc;
    padding: 24px 20px;
}

.brand {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.brand img {
    display: block;
    height: auto;
    max-width: 218px;
}

.brand span,
.label {
    color: #cdd5dc;
    font-size: 13px;
}

.label {
    font-weight: 700;
    margin: 22px 0 10px;
    text-transform: uppercase;
}

.site-list,
.form,
.history {
    display: grid;
    gap: 10px;
}

.nav-item {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: inherit;
    min-height: 42px;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.nav-item.active {
    background: linear-gradient(135deg, #caa65a, #8f7132);
    color: #111820;
    font-weight: 700;
}

.site-item {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: inherit;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    overflow: hidden;
}

.site-select-button,
.site-delete-button {
    background: transparent;
    border: 0;
    color: inherit;
}

.site-select-button {
    min-height: 48px;
    padding: 10px 12px;
    text-align: left;
}

.site-delete-button {
    align-items: center;
    display: flex;
    font-size: 22px;
    font-weight: 700;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.site-item:hover .site-delete-button {
    opacity: 1;
}

.site-delete-button:hover {
    background: rgba(180, 35, 24, 0.35);
}

.site-item.active {
    background: linear-gradient(135deg, #caa65a, #8f7132);
    color: #111820;
}

.main {
    padding: 32px;
}

.header {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 28px;
    margin: 0 0 6px;
}

.header p {
    color: var(--muted);
    margin: 0;
}

.status-pill {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    padding: 8px 12px;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(17, 24, 32, 0.06);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 18px;
}

.panel h2 {
    margin: 0 0 12px;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.button {
    border: 0;
    border-radius: 8px;
    min-height: 42px;
    padding: 10px 14px;
}

.button-primary {
    background: linear-gradient(135deg, #caa65a, #9a7937);
    color: #111820;
    font-weight: 700;
}

.button-primary:hover {
    background: linear-gradient(135deg, #d6b76e, #a8843b);
}

.empty {
    color: var(--muted);
}

.confirm-card,
.history-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.account-item {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.account-item span {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.small-danger-button {
    background: #fee4e2;
    border: 1px solid #fecdca;
    border-radius: 8px;
    color: #b42318;
    min-height: 34px;
    padding: 7px 10px;
}

.inline-form {
    grid-template-columns: minmax(0, 1fr) auto;
}

.price-row {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-box {
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 12px;
}

.price-box span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.price-box strong {
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .login-card {
        min-height: auto;
        right: 50%;
        transform: translate(50%, -50%);
        width: min(100%, 440px);
    }

    .app-shell,
    .grid,
    .price-row,
    .inline-form {
        grid-template-columns: 1fr;
    }
}
