:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --border-color: #ffffff;
    --player-card-bg: #020817;

    --quiz-primary: #6f42c1;
    --quiz-secondary: #4a3f8c;
    --quiz-dark: #121212;
    --quiz-card: #1e293b;
    --quiz-border: #2d2d2d;
    --quiz-danger: #dc3545;
    --quiz-success: #198754;
    --quiz-warning: #ffc107;
    --gradient-purple: #8b5cf6;
    --gradient-indigo: #6366f1;
    --gradient-blue: #3b82f6;

    --purple-900: #4c1d95;
    --indigo-900: #312e81;

    --card-border: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --badge-bg: #f1f5f9;
    --badge-text: #334155;
    --section-bg: #1e293b;

    --gradient-blue-from: rgba(219, 234, 254, 1);
    --gradient-blue-to: rgba(224, 231, 255, 1);
    --gradient-amber-from: rgba(254, 243, 199, 1);
    --gradient-amber-to: rgba(254, 249, 195, 1);
    --gradient-blue-dark-from: rgba(30, 58, 138, 0.3);
    --gradient-blue-dark-to: rgba(30, 27, 75, 0.2);
    --gradient-amber-dark-from: rgba(120, 53, 15, 0.3);
    --gradient-amber-dark-to: rgba(120, 53, 15, 0.2);

    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --live-badge-bg: #dcfce7;
    --live-badge-text: #166534;

}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Logo Style */

.flex{display:flex}
.items-center{align-items:center}
.space-x-2 > * + *{margin-left:0.5rem}

/* Typography */
.text-2xl{font-size:1.5rem;line-height:1.25}
.font-bold{font-weight:700}

/* Size helpers */
.h-6{height:1.5rem}
.w-6{width:1.5rem}

/* Color / text */
.text-white{color:#fff}
.text-transparent{color:transparent}
.bg-clip-text{-webkit-background-clip:text;background-clip:text}

/* Rounded / padding */
.rounded-lg{border-radius:0.5rem}
.p-2{padding:0.5rem}

/* Specific gradient combos used in the project
   We avoid Tailwind's CSS variables and instead define exact gradients
   that match the `from-purple-600` -> `to-indigo-600` look from the compiled CSS.
*/
.bg-gradient-to-r.from-purple-600.to-indigo-600,
.bg-gradient-to-r.from-purple-600.to-indigo-600.p-2{
    background: linear-gradient(90deg, #9333ea 0%, #4f46e5 100%);
}

/* Make sure the small icon box (svg container) centers the icon */
.bg-gradient-to-r.from-purple-600.to-indigo-600.p-2{display:inline-flex;align-items:center;justify-content:center}

/* For clickable buttons that use those three classes together (optional) */
button.bg-gradient-to-r.from-purple-600.to-indigo-600{
    border:0;color:#fff;cursor:pointer
}

/* Gradient text: apply gradient as background and clip to text */
.bg-gradient-to-r.from-purple-600.to-indigo-600.bg-clip-text.text-transparent{
    background: linear-gradient(90deg, #9333ea 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Ensure svg icons that use currentColor get white stroke when inside .text-white */
svg.text-white{color:#fff}

/* Optional small helper to approximate Tailwind's gap utilities used elsewhere */
.gap-2{gap:0.5rem}

/* Add a subtle shadow like Tailwind's button/icon containers (optional) */
.shadow-sm{box-shadow:0 1px 2px rgba(0,0,0,0.05)}

/* Accessibility: clickable area retains focus ring when used as button */
button:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 3px rgba(79,70,229,0.15)}

/* End Logo Style */

/* Sidebar Styles - NOW ON LEFT */
.sidebar {
    background-color: var(--card-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    z-index: 100;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 4px 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
}

/* Main Content Area - UPDATED FOR LEFT SIDEBAR */
.main-content {
    margin-left: 280px;
    padding: 20px;
}

@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: block !important;
    }
}

/* Sidebar Toggle for Mobile/Tablet */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.2rem;
}

/* Navbar Styles - Updated for left sidebar */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    /*margin-left: 280px;*/
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .navbar {
        margin-left: 0;
    }
}

.navbar-brand {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar-brand i {
    color: var(--secondary-color);
}

/* Custom Button Styles */
.btn-quiz {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-quiz:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero-section {
    background-image: url('../images/hero-bg.jpg');

    background-size: cover;
    /*background-position: center;*/
    border-radius: 16px;
    padding: 120px;
    margin-bottom: 40px;
}

/* Card Styles */
.quiz-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.quiz-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.quiz-card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.difficulty-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-easy {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.badge-medium {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.badge-hard {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* Featured Quiz Badges */
.time-left {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.hot-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--danger-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.top-players{
    background: var(--section-bg);
    padding: 50px;
}

/* Player Card - FIXED */
.player-card {
    background-color: var(--player-card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    /*padding-bottom: 20px;*/
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.player-header {
    height: 100px;
    background-image: url('images/card-cover.png');
    /*background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));*/
    position: relative;
}

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    left: 10%;
    position: relative;
    bottom: 10%;
    transform: translateX(-50%);
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.player-card:hover .player-avatar {
    opacity: 1 !important;
}

.player-rank {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* Carousel Styles with Drag Support */
.categories-carousel {
    cursor: grab;
    user-select: none;
}

.categories-carousel:active {
    cursor: grabbing;
}

.category-card {
    height: 280px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    text-decoration: none;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.category-card h5 {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 50px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}



.step-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Animation for buttons */
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.duration-300 {
    transition-duration: 0.3s;
    animation-duration: 0.3s;
}

/* Ensure avatars are always visible */
.player-avatar {
    opacity: 1 !important;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none; /* Allow clicking through to carousel items */
}

.custom-carousel-prev,
.custom-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(99, 102, 241, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Enable clicking on buttons */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.custom-carousel-prev:hover,
.custom-carousel-next:hover {
    background-color: var(--primary-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.custom-carousel-prev {
    left: -20px;
}

.custom-carousel-next {
    right: -20px;
}

.carousel-control-prev-icon{
    height: auto !important;
}

.carousel-control-next-icon{
    height: auto !important;
}


/* Sidebars for Notifications and Messages */
.notifications-sidebar,
.messages-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100vh;
    background-color: var(--card-bg);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.notifications-sidebar.active,
.messages-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    display: none;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

/* Notification Items */
.notification-item {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

.notification-item.new {
    border-left-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.08);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Message Items */
.message-item {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.message-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .notifications-sidebar,
    .messages-sidebar {
        width: 100%;
    }
}

/* Badge styles for time */
.badge.bg-dark {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted);
    font-weight: 500;
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* Custom scrollbar for sidebars */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}


/* Custom styles for navigation icons and user dropdown */

/* Stil za ikonice (Messages i Notifications) */
.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: var(--text-light);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-icon-btn i {
    font-size: 1.4em;
}

.nav-icon-btn:hover {
    background-color: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-icon-btn:active,
.nav-icon-btn:focus {
    background-color: rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Stil za user dropdown dugme */
.nav-user-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 10px;
    color: var(--text-light);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-user-btn:hover {
    background-color: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-user-btn:active,
.nav-user-btn:focus {
    background-color: rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* Poboljšan izgled dropdown menija */
.dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    padding: 10px 20px;
    border-radius: 5px;
    margin: 2px 10px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(99, 102, 241, 0.2);
}

/* Responsive prilagođavanje */
@media (max-width: 768px) {
    .nav-user-btn span {
        display: none;
    }

    .nav-user-btn img {
        margin-right: 0;
    }
}


/* Dodatno razdvajanje sa separatorima */
.d-flex.align-items-center.me-3 {
    position: relative;
    padding-right: 15px;
}

.d-flex.align-items-center.me-3::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ili horizontalni separator između ikonica */
.nav-icon-btn.me-2 {
    position: relative;
}

.nav-icon-btn.me-2::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}


/* OSNOVNI STILOVI FOOTERA */
.footer-quizhub {
    position: relative;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    color: var(--text-light);
    padding-top: 4rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

/* Gornja gradient linija */
.footer-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-purple), var(--gradient-indigo), var(--gradient-blue));
}

/* Blur efekti u pozadini */
.footer-bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}
.footer-bg-blur--right {
    top: -8rem;
    right: -8rem;
    width: 16rem;
    height: 16rem;
    background-color: var(--gradient-indigo);
}
.footer-bg-blur--left {
    bottom: -8rem;
    left: -8rem;
    width: 16rem;
    height: 16rem;
    background-color: var(--gradient-purple);
}

/* LOGO I BREND */
.footer-logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-purple), var(--gradient-indigo));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo-box svg {
    width: 24px;
    height: 24px;
    color: white;
}
.footer-brand-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--gradient-purple), var(--gradient-indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-description {
    color: #94a3b8;
    max-width: 300px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* SOCIJALNI DUGMIĆI */
.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}
.footer-social-btn:nth-child(1):hover { background-color: #3b5998; border-color: #3b5998; }
.footer-social-btn:nth-child(2):hover { background-color: #1da1f2; border-color: #1da1f2; }
.footer-social-btn:nth-child(3):hover { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); border-color: transparent; }
.footer-social-btn:nth-child(4):hover { background-color: #ff0000; border-color: #ff0000; }

/* SEKCUJE SA LINKOVIMA */
.footer-section-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}
.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-purple), var(--gradient-indigo));
    border-radius: 2px;
}

/* LINKOVI SA BULLET TACKOM */
.footer-link {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    padding: 4px 0;
}
.footer-link:hover {
    color: var(--gradient-purple);
}
.footer-link-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #475569;
    margin-right: 10px;
    transition: background-color 0.2s ease;
}
.footer-link:hover .footer-link-bullet {
    background-color: var(--gradient-purple);
}

/* KONTAKT SEKCUA */
.footer-contact-list span {
    color: #94a3b8;
    font-size: 0.95rem;
}
.footer-contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-contact-icon svg {
    width: 16px;
    height: 16px;
    color: var(--gradient-purple);
}
.footer-support-btn {
    background: linear-gradient(to right, var(--gradient-purple), var(--gradient-indigo));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.footer-support-btn:hover {
    background: linear-gradient(to right, #7c3aed, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
    color: white;
}

/* NEWSLETTER */
.footer-newsletter {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.footer-newsletter h5 {
    font-weight: 600;
}
.footer-newsletter-text {
    color: #94a3b8;
    font-size: 0.95rem;
}
.footer-newsletter-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
}
.footer-newsletter-input:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--gradient-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    color: white;
}
.footer-newsletter-input::placeholder {
    color: #94a3b8;
}
.footer-newsletter-btn {
    background: linear-gradient(to right, var(--gradient-purple), var(--gradient-indigo));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.footer-newsletter-btn:hover {
    background: linear-gradient(to right, #7c3aed, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
    color: white;
}

/* COPYRIGHT I LEGAL LINKOVI */
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}
.footer-legal-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-legal-link:hover {
    color: var(--gradient-purple);
}
.footer-legal-link i {
    font-size: 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-quizhub {
        padding-top: 3rem;
    }
    .footer-newsletter .d-flex {
        flex-direction: column;
    }
    .footer-newsletter-input {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    .footer-copyright .text-md-end {
        text-align: left !important;
    }
}


/* OSNOVNI STILOVI NEWSLETTER SEKCIJE */
.newsletter-section {
    background: linear-gradient(135deg, var(--purple-900), var(--indigo-900));
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

/* Pozadina sa gradientom i blur efektom */
.newsletter-bg {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 500"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover;
    background-position: center;
}

.newsletter-overlay {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.9), rgba(99, 102, 241, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Blur efekti u uglovima */
.newsletter-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
}
.newsletter-blur-bottom {
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background-color: var(--gradient-purple);
}
.newsletter-blur-top {
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background-color: var(--gradient-indigo);
}

/* Ikona */
.newsletter-icon-wrapper {
    display: inline-block;
}
.newsletter-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.newsletter-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Newsletter forma */
.newsletter-form-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    height: 56px;
    padding-right: 50px;
    font-size: 1rem;
    border-radius: 8px !important;
}
.newsletter-input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: white !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}
.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.newsletter-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}
.newsletter-input-icon svg {
    width: 20px;
    height: 20px;
}

.newsletter-btn {
    background-color: white !important;
    color: var(--indigo-900) !important;
    border: none !important;
    height: 56px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
.newsletter-btn:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}
.newsletter-btn svg {
    width: 16px;
    height: 16px;
}

/* Benefiti */
.newsletter-benefit-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.newsletter-benefit-icon svg {
    width: 12px;
    height: 12px;
    color: white;
}

/* Statistika */
.newsletter-stats {
    margin-top: 2rem;
}
.newsletter-divider {
    width: 1px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 3rem 0 !important;
    }
    .newsletter-form-container .row {
        flex-direction: column;
    }
    .newsletter-form-container .col-md-8,
    .newsletter-form-container .col-md-4 {
        width: 100%;
    }
    .newsletter-btn {
        width: 100%;
    }
    .newsletter-stats {
        flex-direction: column;
    }
    .newsletter-divider {
        width: 100px;
        height: 1px;
        margin: 1rem 0;
    }
}


/* Dark mode varijable */
.dark-mode {
    --card-bg: #1e293b;
    --card-border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --badge-bg: #334155;
    --badge-text: #e2e8f0;
    --section-bg: #0f172a;
}

/* OSNOVNI STILOVI SEKCIJE */
.how-it-works-section {
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
}

/* Badge stil */
.how-it-works-badge {
    background-color: var(--badge-bg);
    color: var(--badge-text);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Naslovi */
.section-title-how-works {
    color: var(--text-light);
    font-size: 2.25rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    font-size: 1.125rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Kartice */
.how-it-works-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.how-it-works-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Slike placeholder - zamjeni pravim slikama */
.card-image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}


/* Broj na slici */
.card-number {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: var(--card-bg);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Ikona na slici */
.card-icon {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.how-it-works-card:nth-child(2) .card-icon {
    background: var(--gradient-indigo);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.how-it-works-card:nth-child(3) .card-icon {
    background: var(--gradient-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Telo kartice */
.card-body {
    padding: 1.5rem;
}

.card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Footer tekst */
.section-footer-text {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Online users badge */
.online-users-badge {
    background-color: var(--badge-bg);
    color: var(--badge-text);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .section-title {
        font-size: 1.875rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 3rem 0;
    }

    .card-body {
        padding: 1.25rem;
    }
}


/* Live winners section */
.live-winners-section {
    background-color: var(--section-bg);
    transition: background-color 0.3s ease;
    margin-bottom: 25px;
}

/* Live dot indikator */
.live-dot {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-dot-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--green-400);
    border-radius: 50%;
    animation: ping 1.5s infinite;
    opacity: 0.75;
}

.live-dot-core {
    position: relative;
    width: 12px;
    height: 12px;
    background-color: var(--green-500);
    border-radius: 50%;
    z-index: 1;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Section title */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Winners badge */
.winners-badge {
    background-color: var(--green-600);
    color: var(--text-light);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Slider container */
.winners-slider-container {
    position: relative;
    padding: 0.5rem 0;
}

.winners-slider-track {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.winners-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Winner card */
.winner-card {
    width: 256px;
    min-width: 256px;
}

.card-gradient {
    border-radius: 12px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.winner-card:hover .card-gradient {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.gradient-blue {
    /*background: linear-gradient(135deg, var(--gradient-blue-from), var(--gradient-blue-to));*/
    /*background: linear-gradient(135deg, rgb(62 63 64), rgb(1 12 51));*/
    background-color: #151c3b;

}

.gradient-amber {
    /*background: linear-gradient(135deg, var(--gradient-amber-from), var(--gradient-amber-to));*/
    background-color: #231c23;
}

.dark-mode .gradient-blue {
    background: linear-gradient(135deg, var(--gradient-blue-dark-from), var(--gradient-blue-dark-to));
}

.dark-mode .gradient-amber {
    background: linear-gradient(135deg, var(--gradient-amber-dark-from), var(--gradient-amber-dark-to));
}

/* Avatar */
.winner-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Winner info */
.winner-name {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.winner-name a {
    color: inherit;
}

.winner-name a:hover {
    color: #6366f1;
}

.winner-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

/* Winner details */
.winner-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.winner-details {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.winner-amount {
    color: var(--green-600);
    font-weight: 600;
}

.winner-quiz {
    font-weight: 500;
    color: var(--text-light);
}

/* Celebration animation */
.winner-celebration {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-8px);
    }
}

/* Scroll buttons */
.scroll-indicators {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: all;
    transition: all 0.3s ease;
    z-index: 3;
}

.scroll-btn:hover {
    background-color: #f1f5f9;
    transform: scale(1.1);
}

.scroll-btn i {
    font-size: 0.875rem;
}

.scroll-left {
    margin-left: -20px;
}

.scroll-right {
    margin-right: -20px;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .winner-card {
        width: 220px;
        min-width: 220px;
    }

    .scroll-indicators {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .live-winners-section {
        padding: 2rem 1rem;
    }

    .winner-card {
        width: 200px;
        min-width: 200px;
    }
}



.quiz-difficulty-section {
    padding: 3rem 0;
    background-color: var(--dark-bg);
    margin-bottom: 30px;
}

.difficulty-tabs {
    background: var(--section-bg);
    padding: 4px;
    border-radius: 8px;
    display: inline-flex;
}

.difficulty-tabs .btn-tab {
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.2s ease;
}

.difficulty-tabs .btn-tab.active {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.difficulty-tabs .btn-tab.easy.active {
    background-color: #10b981;
    color: white;
}

.difficulty-tabs .btn-tab.medium.active {
    background-color: #f59e0b;
    color: white;
}

.difficulty-tabs .btn-tab.hard.active {
    background-color: #ef4444;
    color: white;
}

.quiz-difficulty-category {
    display: none;
}

.quiz-difficulty-category.active {
    display: block;
}



.quiz-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.quiz-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quizzes-difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
}

.quizzes-difficulty-badge.easy {
    background-color: #d1fae5;
    color: #065f46;
}

.quizzes-difficulty-badge.medium {
    background-color: #fef3c7;
    color: #92400e;
}

.quizzes-difficulty-badge.hard {
    background-color: #fee2e2;
    color: #991b1b;
}

.creator-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    padding: 12px;
    color: white;
}

.creator-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.reward-badge {
    background: #537020;
    /*background: rgba(255,255,255,0.2);*/
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
}

.category-difficulty-badge {
    background-color: #e2e8f0;
    color: #475569;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.progress-container {
    height: 6px;
    border-radius: 3px;
    background-color: #e2e8f0;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
}

.progress-fill.easy {
    background-color: #10b981;
}

.progress-fill.medium {
    background-color: #f59e0b;
}

.progress-fill.hard {
    background-color: #ef4444;
}

.spots-text {
    font-size: 12px;
    color: #64748b;
}

.spots-text.warning {
    color: #dc2626;
    font-weight: 500;
}

.spots-text.alert {
    color: #d97706;
    font-weight: 500;
}

.carousel-control {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-control:hover {
    background-color: #f1f5f9;
}

.carousel-control.prev {
    left: -20px;
}

.carousel-control.next {
    right: -20px;
}

.carousel-control i {
    font-size: 16px;
    color: #475569;
}

.quiz-carousel {
    position: relative;
}

.quiz-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 4px 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.quiz-grid::-webkit-scrollbar {
    display: none;
}

.quiz-item {
    flex: 0 0 auto;
    width: 306px;
}

.section-difficulty-title {
    background-color: var(--section-bg);
}

.section-subtitle {
    color: #64748b;
}

@media (max-width: 768px) {
    .quiz-section {
        padding: 2rem 0;
    }

    .difficulty-tabs {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .difficulty-tabs .btn-tab {
        flex: 1;
        text-align: center;
    }

    .carousel-control {
        display: none;
    }

    .quiz-grid {
        padding: 8px 0 20px;
    }

    .quiz-item {
        width: 280px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .quiz-item {
        width: 280px;
    }
}


.quiz-title {
    position: relative;
    cursor: help;
}

.quiz-title::after {
    content: attr(data-title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 9999;
}

.quiz-title:hover::after {
    opacity: 1;
}
