:root {
    --bg: #000000;
    --surface: #1E1E1E;
    --surface-hover: #2C2C2C;
    --gold: #D4AF37;
    --text: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px; /* Prilagođeno mobilnim ekranima, centrirano na PC-ju */
    margin: 0 auto;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

/* Zaglavlje */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #222;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.gold {
    color: var(--gold);
}

.icon-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Glavni sadržaj */
main {
    flex: 1;
    padding: 20px;
}

/* Tabovi */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.tab.active {
    border-color: var(--gold);
    color: var(--gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Dugmad i forme */
.btn {
    width: 100%;
    padding: 15px;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--gold);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 15px;
}

.btn:active {
    background-color: var(--surface-hover);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    font-size: 16px;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--gold);
}

/* Rezultati */
.result-card {
    background-color: var(--surface);
    border: 1px solid var(--gold);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 15px;
}

.result-card h3 {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 16px;
}

.info-row {
    margin-bottom: 8px;
    font-size: 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.success-text {
    color: #4CAF50;
    font-weight: bold;
    text-align: center;
}

/* Istorija */
#history-list {
    list-style: none;
}

#history-list li {
    background-color: var(--surface);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    border-left: 3px solid var(--gold);
    font-size: 14px;
}

/* Futer */
footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #222;
    font-size: 13px;
    color: var(--text-muted);
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
}

#ad-banner-placeholder {
    margin-top: 15px;
    height: 50px;
    background-color: #111;
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    color: #444;
}

/* Modali */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--surface);
    border: 1px solid var(--gold);
    border-radius: var(--border-radius);
    padding: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 15px;
    text-align: center;
    color: var(--gold);
    font-size: 18px;
}

.modal-content p {
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

/* Lista jezika */
#language-list {
    list-style: none;
    margin-bottom: 15px;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.lang-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.lang-flag {
    font-size: 20px;
}

.lang-right {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
}

.lang-item.active .lang-right {
    border-color: var(--gold);
    background-color: var(--gold);
    box-shadow: inset 0 0 0 3px var(--surface);
}