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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #060514;
    color: #fff;
    line-height: 1.5;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }
}

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.navbar {
    position: sticky;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    top: 0;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: #060514;
    border-bottom: 1px solid #1f2937;
    animation: fadeIn 0.5s ease-out;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.logo-arcio {
    color: #ef4444;
    display: inline-block;
    animation: slideInRight 0.8s ease-out;
}

.logo-live {
    color: #fff;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ef4444;
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    margin-right: 1.5rem;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ef4444;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ef4444;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.icon-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.icon-button:hover::before {
    width: 150%;
    height: 150%;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.icon-button:hover .icon {
    transform: scale(1.1);
}

.lang-code {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    position: relative;
    z-index: 1;
}

.text-button {
    font-size: 14px;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    cursor: pointer;
    gap: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.text-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.text-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.text-button:hover::before {
    width: 150%;
    height: 150%;
}

.text-button span span {
    position: relative;
    z-index: 1;
}

.content-wrapper {
    display: flex;
    flex: 1;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-out;
}

@media (min-width: 768px) {

    .search-container {
        display: block;
    }

    .text-button {
        display: flex;
    }
}

.icon-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
    pointer-events: none;

    background-color: #1e1e2f;
    border: 1px solid #3f3f5a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 0.75rem;
    border-radius: 12px;
    width: 260px;
    z-index: 1000;
    overflow-y: auto;
    color: #eee;
}

.dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown p,
.dropdown a {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #2a2a3d;
    transition: background-color 0.2s ease;
}

.dropdown a:hover,
.dropdown p:hover {
    background-color: #3b3b55;
    color: #fff;
}

.dropdown::-webkit-scrollbar {
    width: 6px;
}

.dropdown::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 6px;
}

.dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.search-results {
    background: #232336;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #3f3f5a;
    padding: 0.5rem 0;
    border-radius: 12px;
    margin-top: 5px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.search-result-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: #232336;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #3f3f5a;
    padding: 0.5rem 0;
    border-radius: 12px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item:hover {
    background-color: #2f2f47;
}

.search-result-item .search-icon {
    display: none !important;
}

.hidden {
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3f3f5a;
}

.username {
    font-size: 0.95rem;
    color: #eee;
    font-weight: 500;
}

.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.user-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#userDropdownMenu {
    position: absolute;
    top: 110%;
    right: unset;
    left: -20px;
    background-color: #1e1e2f;
    border: 1px solid #3f3f5a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 0.75rem;
    border-radius: 12px;
    z-index: 1000;
    width: 240px;
    color: #eee;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
    overflow-y: auto;
}

#userDropdownMenu a {
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    color: #ccc;
    border-radius: 6px;
    background-color: #2a2a3d;
    transition: background-color 0.2s ease;
}

#userDropdownMenu a:hover {
    background-color: #3b3b55;
    color: #fff;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

#notificationsDropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1e1e2f;
    width: 260px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 0.75rem;
    z-index: 1000;
    border: 1px solid #3f3f5a;
    color: #eee;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    background-color: #2a2a3d;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #3b3b55;
}

.notification-item img.notif-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3f3f5a;
}

.notification-item span {
    display: block;
    font-size: 14px;
    color: #ccc;
}

.notification-item .timestamp {
    font-size: 12px;
    color: #888;
}


.fullscreen-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #060514;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    z-index: 2000;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-search {
    margin-top: 2rem;
    /* make the search bar longer */
    width: auto;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.menu-button {
    display: none;
}

.desktopOnly {
    display: none;
}

.mobileOnly {
    display: block;
}

@media (min-width: 768px) {
    .desktopOnly {
        display: block;
    }

    .mobileOnly {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: flex;
    }
}

.profile-banner {
    position: relative;
    overflow: hidden;
}

.profile-banner::after {
    content: '';
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    /* adjust the fade height to taste */
    background: linear-gradient(to bottom,
            rgba(6, 5, 20, 0) 0%,
            /* transparent at top of overlay */
            rgba(6, 5, 20, 1) 100%
            /* solid page background at bottom */
        );
    pointer-events: none;
    z-index: 1;
}

.edit-banner-button {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;

    /* simple, rounded box */
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;

    /* icon color */
    color: #fff;
    font-size: 1.25rem;

    /* hover feedback */
    transition: background-color 0.2s;
    cursor: pointer;
}

.edit-banner-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.edit-banner-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 1) ensure the wrapper is relative */
.input-with-prefix {
    position: relative;
}

/* 2) absolutely position & vertically center every status-icon */
.input-status-icon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
    opacity: 0.9;
}

/* 3) color variants */
.input-status-icon.error {
    color: #e53e3e;
}

.input-status-icon.success {
    color: #38a169;
}

/* 4) spin animation for loader */
.input-status-icon.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
