:root {
    --bg: #0f172a; --card-bg: #1e293b; --text: #f1f5f9; --text-muted: #94a3b8;
    --primary: #10b981; --primary-hover: #059669; --danger: #e11d48; --gold: #fbbf24; --border: #334155;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg); color: var(--text); font-family: sans-serif; padding-bottom: 50px; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.card { background-color: var(--card-bg); border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.card.resolved { opacity: 0.8; }
.text-muted { color: var(--text-muted); font-size: 0.9em; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-gold { color: var(--gold); }
input[type="text"], textarea { width: 100%; padding: 12px; background: #0f172a; border: 1px solid var(--border); color: white; border-radius: 6px; margin-bottom: 10px; font-size: 16px; }
.btn { padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer; font-weight: bold; transition: 0.2s; text-decoration: none; display: inline-block; color: white; }
.btn-primary { background-color: var(--primary); }
.btn-danger { background-color: var(--danger); }
.btn-small { padding: 5px 10px; font-size: 12px; }

.progress-container { height: 6px; background: #334155; border-radius: 3px; overflow: hidden; margin: 15px 0; display: flex; }
.progress-yes { background: var(--primary); height: 100%; transition: width 0.5s ease-out; }

/* Voting Buttons */
.vote-actions { display: flex; gap: 10px; margin-top: 15px; }
.vote-btn { flex: 1; padding: 12px; background: #334155; color: var(--text-muted); border: none; border-radius: 6px; cursor: pointer; font-weight: bold; transition: all 0.2s; }
.vote-btn:hover { background: #475569; }
/* Active States */
.vote-btn.active-yes { background: var(--primary); color: white; border: 2px solid #fff; }
.vote-btn.active-no { background: var(--danger); color: white; border: 2px solid #fff; }

/* Loading State */
.vote-btn.loading { opacity: 0.7; cursor: wait; }

.leaderboard-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.rank { width: 30px; display: inline-block; font-weight: bold; color: var(--text-muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--primary); }
.badge-danger { background: rgba(225, 29, 72, 0.2); color: var(--danger); }
.login-screen { display: flex; height: 80vh; align-items: center; justify-content: center; flex-direction: column; }


/* ... existing code ... */
.expiry-expired { color: var(--danger); font-weight: bold; }
        
/* Link na pojedinačno predviđanje */
.prediction-link { text-decoration: none; color: inherit; transition: color 0.2s; }
.prediction-link:hover { color: var(--primary); }

/* Modificirani stil za flatpickr input */
.input-date { background: #0f172a; border: 1px solid var(--border); color: white; padding: 10px; border-radius: 6px; width: 100%; margin-bottom: 10px; font-family: inherit