/* ==========================================
   DevBazaSRB — style.css v4.0
   Svetliji dark theme — bolji kontrast
   ========================================== */

/* ── 1. VARIJABLE ── */
:root {
    --bg:          #111827;
    --bg-2:        #1e2738;
    --bg-card:     #253044;
    --bg-card2:    #2d3d56;
    --bg-input:    #1e2d44;
    --bg-sidebar:  #1a2438;

    --blue:        #4f8ef7;
    --blue-hover:  #3b7ef3;
    --blue-dark:   #2563eb;
    --blue-dim:    rgba(79,142,247,0.12);
    --blue-border: rgba(79,142,247,0.3);
    --purple:      #9d6ff0;
    --green:       #22d47a;
    --green-dim:   rgba(34,212,122,0.12);
    --yellow:      #f5c842;
    --red:         #f55656;

    --border:      rgba(255,255,255,0.15);
    --border2:     rgba(255,255,255,0.24);
    --border-blue: rgba(79,142,247,0.35);

    --text:        #edf2f7;
    --text-muted:  #b8c8db;
    --text-dim:    #8fa6bf;
    --text-darker: #5a6f87;

    --max-w:       1500px;
    --radius-sm:   10px;
    --radius:      16px;
    --radius-lg:   20px;
    --radius-xl:   26px;

    --shadow-card:  0 2px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    --shadow-hover: 0 12px 36px rgba(0,0,0,0.6), 0 0 0 1px rgba(79,142,247,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at 15% 0%, hsla(220,70%,18%,0.6) 0, transparent 55%),
        radial-gradient(ellipse at 85% 0%, hsla(255,60%,18%,0.5) 0, transparent 55%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text);
    font-family: 'DM Sans', 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── 3. NAVIGACIJA ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 64px;
    background: rgba(17,24,39,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border2);
}

.logo {
    font-size: 1.3rem;
    font-weight: 900;
    text-decoration: none;
    color: white;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.5px;
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo span  { color: var(--blue); }

.nav-base-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-base-link:hover { color: white; }

/* Statistika stranice — uvek vidljivo, i na mobilnom */
.nav-stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(79,142,247,0.1);
    border: 1px solid rgba(79,142,247,0.28);
    color: var(--blue);
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    order: -1; /* uvek levo od navLinksContainer-a */
}
.nav-stat-pill i { font-size: 0.85em; }
.nav-stat-pill span { }
.nav-stat-pill:hover {
    background: rgba(79,142,247,0.2);
    color: #7db3ff;
    transform: translateY(-1px);
}

.nav-divider { height: 20px; width: 1px; background: var(--border2); }

.nav-login-link {
    color: white;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex; align-items: center; gap: 7px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    transition: 0.2s;
    border: 1px solid transparent;
}
.nav-login-link i { color: var(--blue); }
.nav-login-link:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-blue);
}

.nav-special {
    background: rgba(79,142,247,0.12);
    border: 1px solid rgba(79,142,247,0.3);
    padding: 6px 12px;
    border-radius: 8px;
    color: #89b4fa !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 1px;
    transition: 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.nav-special:hover { background: var(--blue); color: white !important; transform: translateY(-1px); }

.admin-link {
    background: rgba(245,86,86,0.12);
    border-color: rgba(245,86,86,0.35);
    color: #fca5a5 !important;
}
.admin-link:hover { background: var(--red); }

.user-pill {
    display: flex; align-items: center; gap: 8px;
    background: rgba(79,142,247,0.12);
    border: 1px solid rgba(79,142,247,0.3);
    padding: 6px 14px;
    border-radius: 50px;
    color: #89b4fa;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: 0.2s;
}
.user-pill:hover { background: rgba(79,142,247,0.22); border-color: var(--blue); }

.logout-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 5px;
}
.logout-link:hover { color: #fca5a5; }

.btn-blue-nav {
    background: var(--blue);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    transition: 0.2s;
    box-shadow: 0 2px 10px rgba(79,142,247,0.3);
}
.btn-blue-nav:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(79,142,247,0.45);
}

/* ── 4. HAMBURGER + MOBILE MENU ── */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    z-index: 1001;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.1); }

.mobile-menu-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 88vw);
    height: 100vh;
    background: #192233;
    border-left: 1px solid var(--border2);
    z-index: 10000;
    transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    box-shadow: -20px 0 50px rgba(0,0,0,0.7);
}
.mobile-menu-overlay.active { right: 0; }

.mobile-menu-close {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border2);
    border-radius: 50%;
    color: white;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer; transition: 0.2s;
}
.mobile-menu-close:hover { background: rgba(245,86,86,0.2); color: #fca5a5; }

.mobile-menu-content {
    padding: 70px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-menu-content a,
.mobile-menu-content .user-pill {
    padding: 13px 16px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: 0.2s;
    display: flex; align-items: center; gap: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
}
.mobile-menu-content a:hover {
    background: rgba(79,142,247,0.12);
    border-color: rgba(79,142,247,0.2);
    transform: translateX(4px);
}
.mobile-menu-content .nav-special { background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.25); }
.mobile-menu-content .logout-link { background: rgba(245,86,86,0.1); border: 1px solid rgba(245,86,86,0.25); color: #fca5a5; margin-top: 16px; }
.mobile-menu-content .btn-blue-nav { justify-content: center; text-align: center; padding: 13px; }

.mobile-menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.mobile-menu-backdrop.active { opacity: 1; pointer-events: all; }

/* ── 5. DEV CARDS ── */
.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.dev-card {
    background: var(--bg-card);
    color: var(--text);
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border2);
    transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.dev-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(79,142,247,0.04), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.dev-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-blue);
    box-shadow: var(--shadow-hover);
}
.dev-card:hover::before { opacity: 1; }
.dev-card h3 { color: white; margin-bottom: 8px; font-size: 1.05rem; font-weight: 700; }

/* ── 6. MODALI ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-2);
    padding: 36px;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    position: relative;
    border: 1px solid var(--border2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
}

#profileModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7,11,20,0.88);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(16px);
    padding: 20px;
}

.modal-content-wrapper {
    background: var(--bg-2);
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border2);
    padding: 36px;
    color: var(--text);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.modal-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border2);
    padding-bottom: 20px;
    margin-bottom: 24px;
    gap: 16px;
}

.user-main-info h1 { font-size: 1.9rem; font-weight: 800; color: white; font-family: 'Syne', sans-serif; }
.subtitle { color: var(--blue); font-size: 0.95rem; margin-top: 5px; }

.modal-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }

.m-badge, .modal-badge {
    background: rgba(79,142,247,0.13);
    color: #89b4fa;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(79,142,247,0.28);
}

.modal-grid-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.info-section h4 {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}

.info-sidebar .side-item {
    background: var(--bg-card);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border2);
}
.side-item span { display: block; font-size: 0.63rem; color: var(--text-dim); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.side-item strong { font-size: 1.02rem; color: #f1f5f9; }

.tech-section { margin-bottom: 24px; }
.tech-section h4 { color: var(--text-muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.t-tag {
    background: var(--bg-card2);
    border: 1px solid var(--border2);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 0.82rem;
    transition: 0.2s;
}
.t-tag:hover { background: rgba(79,142,247,0.12); border-color: var(--border-blue); color: #89b4fa; }

.modal-footer-actions { display: flex; gap: 12px; margin-top: 24px; }

.action-btn {
    flex: 1; padding: 13px;
    border-radius: 11px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.github   { background: var(--bg-card2); color: white; border: 1px solid var(--border2); }
.github:hover { background: #2d3748; border-color: var(--border-blue); }
.cv       { background: var(--blue); color: white; }
.cv:hover { background: var(--blue-hover); transform: translateY(-1px); }
.locked   { background: var(--bg-card); color: var(--text-dim); cursor: not-allowed; border: 1px solid var(--border); }

.close-modal {
    position: absolute; top: 14px; right: 14px;
    background: var(--bg-card2);
    border: 1px solid var(--border2);
    border-radius: 50%;
    color: var(--text-muted);
    width: 34px; height: 34px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    transition: 0.25s;
    z-index: 999;
}
.close-modal:hover { transform: rotate(90deg); background: rgba(245,86,86,0.2); color: #fca5a5; }

/* ── 7. EDIT FORM ── */
.edit-full-form { text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.full-width { grid-column: 1 / -1; }
.f-group { display: flex; flex-direction: column; gap: 7px; }
.f-group label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.f-group input, .f-group select, .f-group textarea, .input-field {
    background: var(--bg-input);
    border: 1px solid var(--border2);
    padding: 11px 13px;
    border-radius: 10px;
    color: white;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: 0.25s;
    width: 100%;
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus, .input-field:focus {
    border-color: var(--blue);
    background: rgba(79,142,247,0.07);
    box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
}
.f-group input::placeholder { color: var(--text-darker); }
.f-group textarea { height: 110px; resize: vertical; }

.edit-buttons { display: flex; gap: 12px; margin-top: 24px; }

.save-btn { flex: 2; background: var(--green); color: white; border: none; padding: 14px; border-radius: 11px; font-weight: 800; cursor: pointer; transition: 0.2s; }
.save-btn:hover { background: #16a85f; transform: translateY(-1px); }

.cancel-btn { flex: 1; background: var(--bg-card2); color: var(--text-muted); border: 1px solid var(--border2); padding: 14px; border-radius: 11px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.cancel-btn:hover { background: #2d3748; color: white; }

.admin-edit-main { width: 100%; margin-top: 16px; background: var(--yellow); color: #0a0a0a; border: none; padding: 14px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.admin-edit-main:hover { background: #e8b82e; transform: translateY(-1px); }

/* ── 8. BUTTONS ── */
.btn-blue { background: var(--blue); color: white !important; text-decoration: none; font-weight: 700; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; border: none; cursor: pointer; padding: 11px 22px; font-size: 0.9rem; box-shadow: 0 2px 12px rgba(79,142,247,0.3); }
.btn-blue:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,142,247,0.45); }

.btn-blu { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 700px; margin: 20px auto; background: var(--blue); color: white !important; text-decoration: none; padding: 18px 0; font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; border-radius: 50px; border: none; cursor: pointer; transition: 0.35s cubic-bezier(0.175,0.885,0.32,1.275); box-shadow: 0 8px 24px rgba(79,142,247,0.35); gap: 12px; }
.btn-blu:hover { transform: scale(1.02) translateY(-4px); box-shadow: 0 16px 40px rgba(79,142,247,0.5); background: var(--blue-hover); }

/* ── 9. LOCK OVERLAYS ── */
.locked-content { filter: blur(8px); pointer-events: none; user-select: none; }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 20; background: rgba(13,17,23,0.55); border-radius: inherit; gap: 8px; }
.lock-overlay i { font-size: 2rem; color: var(--yellow); }
.lock-overlay span { color: white; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }

/* ── 10. CARD ACTIONS ── */
.card-actions-overlay { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 100; background: rgba(13,17,23,0.92); padding: 5px; border-radius: 10px; border: 1px solid var(--border2); }
.card-actions-overlay i { cursor: pointer; font-size: 1rem; padding: 5px; border-radius: 6px; transition: 0.2s; }
.edit-icon   { color: var(--yellow); }
.edit-icon:hover   { background: rgba(245,200,66,0.15); }
.delete-icon { color: var(--red); }
.delete-icon:hover { background: rgba(245,86,86,0.15); }

/* ── 11. COUNTER ── */
.counter-wrapper { display: inline-flex; perspective: 800px; align-items: baseline; gap: 1px; }
.digit { display: inline-block; transition: color 0.3s; }
.digit-jump { animation: superJump 0.85s cubic-bezier(0.47,0,0.745,0.715) forwards; }
@keyframes superJump {
    0%   { transform: translateY(0) scale(1); }
    15%  { transform: translateY(4px) scaleY(0.85) scaleX(1.1); }
    45%  { transform: translateY(-40px) rotateX(25deg) scale(1.35); color: var(--blue); text-shadow: 0 15px 25px rgba(79,142,247,0.5); }
    75%  { transform: translateY(3px) scaleY(0.88); }
    100% { transform: translateY(0) scale(1); }
}

/* ── 12. AI BADGE ── */
.ai-match-badge { position: absolute; top: -10px; right: -5px; background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; padding: 5px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 800; box-shadow: 0 4px 14px rgba(157,111,240,0.5); z-index: 10; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,0.15); animation: badgePop 0.4s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes badgePop { from { transform: scale(0) rotate(-10deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── 13. TOAST ── */
.toast-notif { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: var(--green); color: white; padding: 11px 22px; border-radius: 50px; font-weight: 700; font-size: 0.88rem; z-index: 99999; display: flex; align-items: center; gap: 9px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); white-space: nowrap; animation: toastUp 0.3s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes toastUp { from { bottom: -60px; opacity: 0; } to { bottom: 28px; opacity: 1; } }
@keyframes toastSlideUp { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

.loader { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 14. FADE IN ── */
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── 15. FOOTER ── */
.main-footer { background: var(--bg-2); padding: 48px 0 24px; margin-top: 80px; border-top: 1px solid var(--border2); }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 0 20px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.footer-socials { display: flex; gap: 20px; }
.social-link { font-size: 1.6rem; color: var(--text-muted); transition: 0.25s; }
.social-link.insta:hover  { color: #e1306c; transform: translateY(-4px); }
.social-link.tiktok:hover { color: #ff0050; transform: translateY(-4px); }
.social-link.github:hover { color: white;   transform: translateY(-4px); }
.footer-bottom { border-top: 1px solid var(--border); width: 100%; padding-top: 20px; }
.footer-bottom p { color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
/* Dodaj ove klase ispod .footer-socials */
/* Kontejner za dugmad */

/* ── 16. AUTH OVERLAY ── */
.auth-overlay { position: fixed; inset: 0; background: rgba(7,11,20,0.95); backdrop-filter: blur(16px); align-items: center; justify-content: center; z-index: 9999; }

/* ── 17. FORM INPUTS ── */
.input-dark, .select-dark { width: 100%; background: var(--bg-input); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 10px 13px; color: white; font-size: 0.88rem; outline: none; transition: 0.25s; font-family: 'DM Sans','Inter',sans-serif; }
.input-dark:focus, .select-dark:focus { border-color: var(--blue); background: rgba(79,142,247,0.07); box-shadow: 0 0 0 3px rgba(79,142,247,0.15); }
.input-dark::placeholder { color: var(--text-darker); }

/* Range slider */
input[type="range"] { -webkit-appearance: none; width: 100%; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--border2); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%; background: var(--blue); margin-top: -7px; box-shadow: 0 0 0 3px rgba(79,142,247,0.25); transition: box-shadow 0.2s; }
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(79,142,247,0.35); }

/* Checkbox */
.checkbox-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.check-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; cursor: pointer; color: var(--text-muted); }
.check-item input { accent-color: var(--blue); width: 16px; height: 16px; cursor: pointer; }

/* ── 18. FILTER SIDEBAR ── */
.sidebar-filter {
    width: 300px; flex-shrink: 0;
    background: var(--bg-sidebar);
    border: 1px solid var(--border2);
    padding: 22px;
    border-radius: var(--radius-lg);
    position: sticky; top: 88px;
    box-shadow: var(--shadow-card);
}
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.filter-divider { height: 1px; background: var(--border2); margin: 18px 0; }

/* ── 19. NIVO PILLS ── */
.nivo-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.nivo-pill { background: var(--bg-card2); border: 1px solid var(--border2); color: var(--text-muted); padding: 6px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: 0.2s; }
.nivo-pill:hover { border-color: var(--blue); color: white; }
.nivo-pill.active { background: var(--blue); border-color: var(--blue); color: white; }

/* ── 20. SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(79,142,247,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79,142,247,0.55); }

/* ── 21. ANIMACIJE ── */
@keyframes floatEl { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(8deg); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,212,122,0.35); } 50% { box-shadow: 0 0 0 8px rgba(34,212,122,0); } }
@keyframes slideGlow { 0% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@keyframes confettiFall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(110vh) rotate(720deg); opacity: 0; } }
@keyframes jumpOver { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ── 22. RESPONSIVE ── */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
    .dev-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .modal-content-wrapper { max-width: 96vw; padding: 28px; }
}

/* ── Mobile L (max 768px) ── */
@media (max-width: 768px) {
    /* Navbar */
    .hamburger-btn { display: flex; align-items: center; justify-content: center; }
    #navLinksContainer { display: none !important; }
    .navbar { padding: 0 14px; height: 58px; gap: 8px; }
    .logo { font-size: 1.15rem; }
    .nav-stat-pill { padding: 5px 10px; font-size: 0.76rem; gap: 5px; }
    .nav-stat-pill span { display: none; } /* samo ikonica na mobitelu */

    /* Modali */
    .modal-overlay { padding: 10px; align-items: flex-end; }
    .modal-content {
        padding: 20px 18px;
        border-radius: 20px 20px 0 0;
        max-height: 92dvh;
        width: 100%;
        max-width: 100%;
    }
    .modal-content-wrapper {
        padding: 20px 16px;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-width: 100%;
    }
    #profileModal { padding: 0; align-items: flex-end; }
    .modal-grid-info { grid-template-columns: 1fr; gap: 16px; }
    .modal-header-main { flex-direction: column; gap: 10px; }
    .user-main-info h1 { font-size: 1.4rem; }
    .modal-footer-actions { flex-direction: column; gap: 10px; }
    .close-modal { top: 12px; right: 12px; width: 32px; height: 32px; }

    /* Form */
    .form-grid { grid-template-columns: 1fr; gap: 14px; }
    .edit-buttons { flex-direction: column; gap: 10px; }
    .save-btn, .cancel-btn { width: 100%; }

    /* Layout */
    .main-layout { flex-direction: column; padding: 12px 12px 60px; gap: 12px; }
    .sidebar-filter { position: static; width: 100%; max-height: none; }

    /* Cards */
    .dev-grid { grid-template-columns: 1fr; gap: 12px; }
    .dev-card { padding: 16px; }
    .dev-card h3 { font-size: 1rem; }

    /* Buttons */
    .btn-blu { font-size: 0.95rem; padding: 14px 20px; max-width: 100%; }
    .btn-blue { padding: 10px 18px; font-size: 0.85rem; }

    /* Footer */
    .main-footer { margin-top: 40px; padding: 32px 0 16px; }
    .footer-container { gap: 18px; padding: 0 16px; }
    .footer-brand p { font-size: 0.82rem; }
    .footer-socials { gap: 18px; }
    .social-link { font-size: 1.4rem; }
    .main-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .main-footer .footer-links .footer-link-btn { padding: 8px 14px !important; font-size: 0.75rem !important; }
    .footer-bottom p { font-size: 0.7rem; letter-spacing: 0.5px; }

    /* Auth overlay */
    .auth-overlay { align-items: flex-end !important; padding: 0 !important; }
    .auth-modal-card { border-radius: 24px 24px 0 0 !important; width: 100% !important; max-width: 100% !important; padding: 36px 24px 40px !important; }

    /* Mobile menu */
    .mobile-menu-overlay { width: min(280px, 90vw); }
    .mobile-menu-content { padding: 60px 16px 24px; }

    /* Tech tags */
    .tech-tags { gap: 5px; }
    .t-tag { font-size: 0.78rem; padding: 4px 10px; }

    /* Lock overlay text */
    .lock-overlay span { font-size: 0.68rem; }

    /* Toast */
    .toast-notif { font-size: 0.8rem; padding: 9px 16px; bottom: 20px; max-width: 90vw; white-space: normal; text-align: center; }
}

/* ── Mobile M (max 480px) ── */
@media (max-width: 480px) {
    /* Navbar još kompaktnije */
    .navbar { padding: 0 12px; height: 54px; }
    .logo { font-size: 1.05rem; }

    /* Modal dugmad */
    .modal-footer-actions { flex-direction: column; gap: 8px; }
    .action-btn { padding: 12px; font-size: 0.82rem; }

    /* Edit forma */
    .edit-buttons { flex-direction: column; }

    /* Hero stat brojevi */
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.7rem; }

    /* Nivo pills */
    .nivo-pills { gap: 4px; }
    .nivo-pill { padding: 5px 10px; font-size: 0.72rem; }

    /* Sidebar filter */
    .sidebar-filter { padding: 16px; }
    .filter-group label { font-size: 0.62rem; }

    /* User pill u navbaru */
    .user-pill { padding: 5px 10px; gap: 6px; font-size: 0.76rem; }

    /* Logout link */
    .logout-link { font-size: 0.7rem; }

    /* Admin/special pills */
    .nav-special { padding: 5px 9px; font-size: 0.66rem; }

    /* Form inputs */
    .f-group input, .f-group select, .f-group textarea { padding: 10px 11px; font-size: 0.84rem; }

    /* Footer links wrap */
    .main-footer .footer-links .footer-link-btn { padding: 7px 12px !important; font-size: 0.72rem !important; }

    /* AI badge */
    .ai-match-badge { font-size: 0.7rem; padding: 4px 9px; }

    /* Modal close */
    .modal-content { padding: 18px 14px; }
    .modal-content-wrapper { padding: 18px 14px; }
}

/* ── Mobile S (max 380px) ── */
@media (max-width: 380px) {
    .logo { font-size: 0.98rem; }
    .nav-stat-pill { padding: 4px 8px; font-size: 0.72rem; }
    .btn-blu { font-size: 0.88rem; padding: 13px 16px; }
    .dev-card { padding: 13px; }
    .user-main-info h1 { font-size: 1.25rem; }
    .main-footer .footer-links .footer-link-btn { padding: 6px 10px !important; font-size: 0.68rem !important; }
    .footer-bottom p { font-size: 0.62rem; }
    .stat-number { font-size: 1.8rem; }
}

/* Poništavamo sve što browser ili drugi CSS nameću ovim linkovima */
.main-footer .footer-links .footer-link-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 18px !important;
    margin: 5px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    color: #94a3b8 !important; /* Siva boja */
    text-decoration: none !important; /* UKLANJA PODVUČENO */
    font-size: 13px !important;
    font-weight: 700 !important;
    transition: 0.3s all ease !important;
    line-height: 1 !important;
}

/* Hover efekat */
.main-footer .footer-links .footer-link-btn:hover {
    color: #ffffff !important;
    background-color: rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
    transform: translateY(-3px) !important;
    text-decoration: none !important;
}

/* Stil za ikonice unutar tih dugmadi */
.main-footer .footer-links .footer-link-btn i {
    margin-right: 8px !important;
    color: #3b82f6 !important;
    font-size: 14px !important;
}