/* ============================================
   AIT SWITCHER - MAIN STYLES
   ============================================ */

.ait-switcher {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

/* ============================================
   FLOATING CONTAINER
   ============================================ */

.ait-switcher-floating {
    position: fixed;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ait-switcher-floating.ait-switcher-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.ait-switcher-floating.ait-switcher-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.ait-switcher-floating.ait-switcher-position-top-right {
    top: 20px;
    right: 20px;
}

.ait-switcher-floating.ait-switcher-position-top-left {
    top: 20px;
    left: 20px;
}

/* ============================================
   SELECT DROPDOWN
   ============================================ */

.ait-language-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ait-language-select:hover {
    border-color: #0073aa;
}

.ait-language-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.ait-language-select img {
    margin-right: 4px;
    vertical-align: middle;
}

/* ============================================
   CUSTOM DROPDOWN
   ============================================ */

.ait-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.ait-switcher-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ait-switcher-dropdown-btn:hover {
    border-color: #0073aa;
    background: #f9f9f9;
}

.ait-switcher-dropdown-btn:active {
    border-color: #0073aa;
    background: #f0f9ff;
}

.ait-switcher-dropdown-btn img {
    width: 20px;
    height: 14px;
    flex-shrink: 0;
}

.ait-switcher-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.ait-switcher-dropdown-menu.active {
    display: block;
}

.ait-switcher-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.ait-switcher-dropdown-menu a:last-child {
    border-bottom: none;
}

.ait-switcher-dropdown-menu a:hover {
    background: #f5f5f5;
}

.ait-switcher-dropdown-menu a.active {
    background: #e7f5ff;
    color: #0073aa;
    font-weight: 600;
}

.ait-switcher-dropdown-menu a img {
    width: 20px;
    height: 14px;
    flex-shrink: 0;
}

.ait-switcher-dropdown-menu a span {
    flex: 1;
}

/* ============================================
   INLINE LINKS
   ============================================ */

.ait-switcher-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ait-switcher-inline a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.ait-switcher-inline a:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.ait-switcher-inline a.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    font-weight: 600;
}

.ait-switcher-inline a img {
    width: 16px;
    height: 12px;
}

.ait-switcher-inline .separator {
    color: #ccc;
    margin: 0 -4px;
}

/* ============================================
   BUTTON GROUP
   ============================================ */

.ait-switcher-button {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ait-switcher-button .ait-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    background: white;
    color: #333;
    margin-right: 4px;
}

.ait-switcher-button .ait-btn:last-child {
    margin-right: 0;
}

.ait-switcher-button .ait-btn:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.ait-switcher-button .ait-btn.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    font-weight: 600;
}

.ait-switcher-button .ait-btn img {
    width: 18px;
    height: 12px;
    flex-shrink: 0;
}

.ait-switcher-button .ait-btn span {
    flex: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .ait-switcher-floating {
        padding: 12px;
    }
    
    .ait-switcher-floating.ait-switcher-position-bottom-right,
    .ait-switcher-floating.ait-switcher-position-bottom-left {
        bottom: 10px;
    }
    
    .ait-switcher-floating.ait-switcher-position-bottom-right {
        right: 10px;
    }
    
    .ait-switcher-floating.ait-switcher-position-bottom-left {
        left: 10px;
    }
    
    .ait-switcher-floating.ait-switcher-position-top-right {
        top: 10px;
        right: 10px;
    }
    
    .ait-switcher-floating.ait-switcher-position-top-left {
        top: 10px;
        left: 10px;
    }
    
    .ait-switcher-dropdown-menu {
        min-width: 150px;
    }
    
    .ait-switcher-button .ait-btn {
        padding: 6px 10px;
        font-size: 13px;
        margin-right: 4px;
    }
}

/* ============================================
   SCROLLBAR FOR DROPDOWN MENU
   ============================================ */

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

.ait-switcher-dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ait-switcher-dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.ait-switcher-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}
