:root {
    --game-primary: #6C5CE7;
    --game-secondary: #A29BFE;
    --game-accent: #FD79A8;
    --game-success: #00D2A0;
    --game-warning: #FDCB6E;
    --game-bg: #0F0F1E;
    --game-card: #1A1A2E;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D0;
}

/* Background */
body {
    background: linear-gradient(135deg, #0F0F1E 0%, #1A1A2E 100%) !important;
    color: var(--text-primary) !important;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
}

/* Navbar */
.gaming-navbar {
    background: rgba(15, 15, 30, 0.7) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
    padding: 15px 0;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--game-primary), var(--game-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar z-index fix */
.gaming-navbar {
    background: rgba(15, 15, 30, 0.7) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
    padding: 15px 0;
    position: relative;
    z-index: 1000 !important;
}

.navbar {
    z-index: 1000 !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(108, 92, 231, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
}

.gaming-dropdown-menu {
    z-index: 9999 !important;
}

.dropdown-item {
    color: #B8B8D0 !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(108, 92, 231, 0.2) !important;
    color: white !important;
}

.dropdown-item.text-danger {
    color: #FF6B6B !important;
}

.dropdown-item.text-danger:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #FF6B6B !important;
}

/* Ensure dropdown appears above all content */
.navbar .dropdown {
    z-index: 10000;
}

/* Links */
.gaming-nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    padding: 10px 20px;
}

/* Avatar */
.user-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    border: 2px solid var(--game-primary);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
    display: block;
    flex-shrink: 0;
}
/* HEADER: razmak između avatara i imena */
.user-profile-btn .user-avatar {
    margin-right: 10px;   /* malu distancu dodamo */
    vertical-align: middle;
}

/* Malo doteramo i ime da bude poravnato */
.user-profile-btn .user-name {
    margin-left: 5px;
    position: relative;
    top: 1px;   /* blago centriranje da bude idealno */
}
.user-profile-btn,
.user-profile-btn:hover,
.user-profile-btn:focus {
    text-decoration: none !important;
}
.user-profile-btn .user-name {
    text-decoration: none !important;
}
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px; /* dodatni razmak, moderniji način umesto margin-right */
}