.sidebar .search-item {
    padding: 8px 15px;
}

.sidebar .search-item input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar .search-item input:focus {
    outline: none;
}

/* navbar */

.navbar-brand .company-section,
.navbar-right .connected-section {
    display: inline;
}

@media (max-width: 1294px) {

    .navbar-brand .company-section,
    .navbar-right .connected-section {
        display: none;
    }
}

.navbar-right .actions-button {
    display: inline-block;
}

@media (max-width: 1090px) {
    .navbar-right .actions-button {
        display: inline-block;
    }

    .profile-link {
        font-size: 14px !important;
    }
}

@media (max-width: 1090px) {
    #logoutOptionSidebar {
        display: block !important;
    }
}

@media (max-width: 1090px) {
    .dropdown-toggle .actions-text {
        display: none !important;
    }

    .dropdown-menu .hide-on-compact {
        display: none !important;
    }
}

.navbar-gear {
    float: right;
    margin-right: 10px;
    margin-top: 4px;
}

.navbar-gear .dropdown-toggle {
    display: block;
    padding: 12px 10px;
    line-height: 24px;
    background: transparent !important;
    color: #9A9A9A !important;
    text-decoration: none;
    margin-top: 5px;
}

.navbar-gear .dropdown-toggle:focus,
.navbar-gear .dropdown-toggle:active {
    background: transparent !important;
    color: #9A9A9A !important;
    outline: none;
}

.navbar-gear .dropdown-toggle:hover,
.navbar-gear.open .dropdown-toggle {
    color: #5bc0de !important;
}

.navbar-gear .fa {
    font-size: 18px;
}

@media (min-width: 1090px) {
    .navbar-gear {
        display: none;
    }
}

@media (max-width: 1090px) {
    .navbar .navbar-collapse.collapse, .navbar .navbar-collapse.collapse.in, .navbar .navbar-collapse.collapsing {
        display: none !important;
    }}

    .logout-popover {
        position: fixed;
        width: 215px;
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11), 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 14px 15px 12px;
        z-index: 10500;
        pointer-events: none;
        opacity: 0;
        transform: scale(0.93) translateY(-5px);
        transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .logout-popover::before {
        content: '';
        position: absolute;
        top: -5px;
        bottom: auto;
        left: var(--lp-arrow-x, 50%);
        width: 10px;
        height: 10px;
        background: var(--bg-white);
        border-left: 1px solid var(--border-light);
        border-top: 1px solid var(--border-light);
        border-radius: 2px 0 0 0;
        transform: translateX(-50%) rotate(45deg);
    }
    .logout-popover.lp-upward::before {
        top: auto;
        bottom: -5px;
        border-left: none;
        border-top: none;
        border-right: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
        border-radius: 0 0 2px 0;
        transform: translateX(-50%) rotate(45deg);
    }
    
    .logout-popover.lp-visible {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: all;
    }
    
    .logout-popover::before {
        content: '';
        position: absolute;
        top: -5px;
        left: var(--lp-arrow-x, 50%);
        width: 10px;
        height: 10px;
        background: var(--bg-white);
        border-left: 1px solid var(--border-light);
        border-top: 1px solid var(--border-light);
        border-radius: 2px 0 0 0;
        transform: translateX(-50%) rotate(45deg);
    }
    
    .logout-popover-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 5px;
    }
    
    .logout-popover-icon {
        color: var(--danger-color);
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .logout-popover-title {
        font-weight: 700;
        font-size: 14px;
        color: var(--text-main);
        line-height: 1.2;
    }
    
    .logout-popover-text {
        font-size: 13px;
        color: var(--text-secondary);
        margin: 0 0 12px;
        line-height: 1.4;
    }
    
    .logout-popover-actions {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }
    
    .logout-popover-actions button {
        width: 100%;
        padding: 10px 8px;
        border-radius: 8px;
        font-size: 13px;
        white-space: nowrap;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
        line-height: 1;
    }
    
    
    .lp-btn-cancel {
        background: transparent;
        border: 1.2px solid var(--border-medium) !important;
        color: var(--text-tertiary);
    }
    
    .lp-btn-cancel:hover {
        background: var(--primary-light-bg);
        border-color: var(--primary-color) !important;
        color: var(--primary-color);
    }
    
    .lp-btn-confirm {
        background: var(--danger-color);
        color: #fff;
    }
    
    .lp-btn-confirm:hover {
        background: var(--danger-hover);
        box-shadow: 0 3px 8px var(--danger-shadow);
        transform: translateY(-1px);
        color: #fff;
    }

.lang-toggle,
.ui-toggle {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    border-radius: 20px;
    padding: 2.6px;
    user-select: none;
    flex-shrink: 0;
}

.lang-opt,
.ui-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 5px;
    border-radius: 17px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-opt.active,
.ui-opt.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.lang-opt:not(.active):hover,
.ui-opt:not(.active):hover {
    color: #475569;
}

.lang-toggle-sidebar {
    background: rgba(255, 255, 255, 0.15);
}

.lang-toggle-sidebar .lang-opt {
    color: rgba(255, 255, 255, 0.5);
}

.lang-toggle-sidebar .lang-opt.active {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.lang-toggle-sidebar .lang-opt:not(.active):hover {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes lang-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

.ui-opt {
    padding: 0 8px;
}

.lang-toggle.lang-switching,
.ui-toggle.ui-switching {
    animation: lang-pulse 0.65s ease infinite;
    pointer-events: none;
}

#app-content.lang-switching {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

@media (max-width: 991px) {
    .lang-toggle-mobile {
        padding: 4px;
    }

    .lang-toggle-mobile .lang-opt {
        min-width: 40px;
        min-height: 36px;
        font-size: 12px;
    }
}