* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #FF6B35;
    --secondary: #8B5CF6;
    --accent: #00D9FF;
    --bg-dark: #0D0D0D;
    --bg-card: #1A1A2E;
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0B0;
    --border: #3D3D5C;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0f2e 100%);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    padding: 12px 24px;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 0 0 auto;
    background: none;
    border: none;
    padding: 0;
}

.navbar-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.navbar-brand:hover .navbar-logo img {
    filter: brightness(1.2);
}

.navbar-spacer {
    flex: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.navbar a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar a:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
}

.navbar-brand {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.navbar-brand:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.menu-icon {
    cursor: pointer;
    font-size: 24px;
    margin-left: auto;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.menu-icon:hover {
    transform: scale(1.15) rotate(15deg);
    color: var(--primary);
}

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        position: relative;
    }

    .navbar-brand {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: auto;
        z-index: auto;
    }

    .navbar-spacer {
        position: absolute;
        right: 24px;
        flex: none;
        justify-content: flex-end;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
}

.menu-dropdown {
    position: fixed;
    top: 60px;
    right: 24px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    min-width: 220px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    overflow: visible;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-summary {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
}

.user-summary-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.user-summary-status {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.menu-dropdown.active {
    display: flex;
}

.menu-dropdown a, .menu-dropdown form, .language-button {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    cursor: pointer;
    text-align: left;
    display: block;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-dropdown a:last-child, .menu-dropdown form:last-child, .language-button:last-child {
    border-bottom: none;
}

.menu-dropdown a:hover, .language-button:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
}

.menu-dropdown form {
    border: none;
    padding: 0;
}

.language-menu {
    position: relative;
    width: 100%;
}

.language-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    flex-direction: column;
    z-index: 1001;
    border-radius: 6px;
    overflow: visible;
    min-width: 100%;
}

.language-options.active {
    display: flex;
}

.language-option {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    width: 100%;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
}

.language-caret {
    transition: transform 0.2s;
    display: inline-block;
    margin-left: 8px;
}

.language-menu.active .language-caret {
    transform: scaleY(-1);
}

.base-footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.base-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.base-footer a:hover {
    color: #4ade80;
}
