
.topbar--style2 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar--style2 .topbar__top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.topbar--style2 .topbar__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 32px;
    gap: 24px;
}

.topbar--style2 .topbar__top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar--style2 .topbar__nav {
    background: #ffffff;
}

.topbar--style2 .topbar__nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 0 32px;
}

.topbar--style2 .topbar__nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.topbar--style2 .topbar__nav-menu::-webkit-scrollbar {
    display: none;
}

.topbar--style2 .topbar__nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text, #0f172a);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.topbar--style2 .topbar__nav-link i {
    font-size: 14px;
    color: #9ca3af;
    transition: color 0.2s;
}

.topbar--style2 .topbar__nav-link:hover {
    color: var(--primary, #34d399);
    border-bottom-color: var(--primary, #34d399);
}

.topbar--style2 .topbar__nav-link:hover i {
    color: var(--primary, #34d399);
}

.topbar--style2 .topbar__nav-icon {
    font-size: 18px;
}

.topbar--style2 .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.topbar--style2 .brand:hover {
    opacity: 0.8;
}

.topbar--style2 .brand__mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #34d399);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

.topbar--style2 .brand__text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #0f172a);
    letter-spacing: -0.02em;
}

.topbar--style2 .topnav__desktop {
    display: none !important;
}

.topbar--style2 .topbar__utility-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text, #0f172a);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.topbar--style2 .topbar__utility-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.topbar--style2 .topbar__utility-btn svg {
    width: 18px;
    height: 18px;
}

.topbar--style2 .topbar__utility-btn--icon {
    padding: 8px;
}

.topbar--style2 .topbar__utility-btn--icon span {
    display: none;
}

.topbar--style2 .topbar__utility-btn--icon .icon--sun,
.topbar--style2 .topbar__utility-btn--icon .icon--moon {
    width: 18px;
    height: 18px;
}

.topbar--style2 .topbar__utility-btn--icon .icon--sun {
    display: none;
}

.topbar--style2 .topbar__utility-btn--icon .icon--moon {
    display: block;
}

:root[data-theme="dark"] .topbar--style2 .topbar__utility-btn--icon .icon--sun {
    display: block;
}

:root[data-theme="dark"] .topbar--style2 .topbar__utility-btn--icon .icon--moon {
    display: none;
}

.topbar--style2 .user-dropdown {
    position: relative;
}

.topbar--style2 .user-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 0;
}

.topbar--style2 .user-dropdown__trigger:hover {
    background: rgba(0, 0, 0, 0.04);
}

.topbar--style2 .user-dropdown__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.topbar--style2 .user-dropdown__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary, #34d399) 0%, #10b981 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.topbar--style2 .user-dropdown__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-width: 150px;
}

.topbar--style2 .user-dropdown__name-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar--style2 .user-dropdown__role-text {
    font-size: 11px;
    color: rgba(15, 23, 42, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar--style2 .user-dropdown__chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.topbar--style2 .user-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 1000;
}

.topbar--style2 .user-dropdown__menu.is-active,
.topbar--style2 .user-dropdown__menu[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topbar--style2 .user-dropdown__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text, #0f172a);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.topbar--style2 .user-dropdown__item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.topbar--style2 .user-dropdown__item--danger {
    color: #ef4444;
}

.topbar--style2 .user-dropdown__item--danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.topbar--style2 .user-dropdown__item svg {
    width: 16px;
    height: 16px;
}

.topbar--style2 .user-dropdown__divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 3px 0;
}

.topbar--style2 .topbar__auth-btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.topbar--style2 .topbar__auth-btn--login {
    color: var(--text, #0f172a);
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.topbar--style2 .topbar__auth-btn--login:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
}

.topbar--style2 .topbar__auth-btn--register {
    color: white;
    background: var(--primary, #34d399);
    border: 1px solid var(--primary, #34d399);
}

.topbar--style2 .topbar__auth-btn--register:hover {
    background: var(--primary2, #10b981);
    border-color: var(--primary2, #10b981);
}

@media (min-width: 1025px) {
    .topbar--style2 .topnav[data-nav] {
        display: none !important;
    }
}

:root[data-theme="dark"] .topbar--style2 {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .topbar--style2 .topbar__top {
    background: #1a1f2e;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .topbar--style2 .topbar__nav {
    background: #1a1f2e;
}

:root[data-theme="dark"] .topbar--style2 .brand__text,
:root[data-theme="dark"] .topbar--style2 .topbar__nav-link,
:root[data-theme="dark"] .topbar--style2 .topbar__utility-btn {
    color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .topbar--style2 .topbar__nav-link:hover {
    color: var(--primary, #34d399);
}

:root[data-theme="dark"] .topbar--style2 .topbar__utility-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .topbar--style2 .topbar__auth-btn--login {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .topbar--style2 .topbar__auth-btn--login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .topbar--style2 .user-dropdown__trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .topbar--style2 .user-dropdown__menu {
    background: #1a1f2e;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .topbar--style2 .user-dropdown__header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .topbar--style2 .user-dropdown__name {
    color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .topbar--style2 .user-dropdown__role {
    color: rgba(255, 255, 255, 0.5);
}

:root[data-theme="dark"] .topbar--style2 .user-dropdown__item {
    color: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] .topbar--style2 .user-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .topbar--style2 .user-dropdown__item--danger:hover {
    background: rgba(239, 68, 68, 0.12);
}

:root[data-theme="dark"] .topbar--style2 .topbar__nav-link {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.3);
}

@media (max-width: 1024px) {
    .topbar--style2 .topbar__top-inner {
        padding: 12px 20px;
    }

    .topbar--style2 .topbar__nav-inner {
        padding: 0 20px 0 20px;
    }

    .topbar--style2 .topbar__utility-btn span {
        display: none;
    }

    .topbar--style2 .topbar__utility-btn {
        padding: 8px;
    }

    .topbar--style2 .topbar__nav-link {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {

    .topbar--style2 .topbar__top-inner {
        padding: 8px 12px;
    }

    .topbar--style2 .topbar__nav-inner {
        padding: 0 12px 0 12px;
    }

    .topbar--style2 .topbar__nav-menu {
        gap: 0;
        padding: 4px 0;
    }

    .topbar--style2 .topbar__nav-link {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        padding: 6px 4px;
        margin-right: 10px;
        font-size: 13px;
        font-weight: 600;
        min-width: fit-content;
        color: #111827 !important;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .topbar--style2 .topbar__nav-link span {
        color: #111827 !important;
        font-weight: 600;
    }
    
    .topbar--style2 .topbar__nav-link i {
        color: #6b7280 !important;
    }

    .topbar--style2 .topbar__nav-link:last-child {
        margin-right: 0;
    }

    .topbar--style2 .topbar__nav-icon {
        font-size: 15px;
        flex-shrink: 0;
    }

    .topbar--style2 .brand__text {
        font-size: 15px;
    }

    .topbar--style2 .brand__text small {
        display: none;
    }

    .topbar--style2 .user-dropdown__info {
        display: none;
    }

    .topbar--style2 .user-dropdown__trigger {
        padding: 6px;
        gap: 0;
    }

    .topbar--style2 .user-dropdown__avatar {
        width: 32px;
        height: 32px;
    }

    .topbar--style2 .user-dropdown__chevron {
        display: none;
    }

    .topbar--style2 .user-dropdown__menu {
        right: 0;
        left: auto;
        min-width: 200px;
    }

    .topbar--style2 .brand__mark {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .topbar--style2 .topbar__auth-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        position: relative;
        background-size: 18px 18px;
        background-position: center;
        background-repeat: no-repeat;
    }

    .topbar--style2 .topbar__auth-btn--login {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    }

    .topbar--style2 .topbar__auth-btn--register {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cline x1='19' y1='8' x2='19' y2='14'/%3E%3Cline x1='22' y1='11' x2='16' y2='11'/%3E%3C/svg%3E");
    }

    .topbar--style2 .topbar__utility-btn:not(.topbar__utility-btn--icon) {
        display: none;
    }

    .topbar--style2 .topbar__utility-btn--icon {
        padding: 6px;
    }

    .topbar--style2 .user-dropdown__avatar {
        width: 28px;
        height: 28px;
    }

    .topbar--style2 .user-dropdown__chevron {
        width: 14px;
        height: 14px;
    }
}
