/* Chrome-style Google Translate Popup Redesign */
#chrome-translate-popup {
    position: fixed;
    background: #202124;
    color: #e8eaed;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    width: 320px;
    padding: 12px 16px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    animation: chromePopupFadeIn 0.3s ease-out;
    border: 1px solid #3c4043;
}

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

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

.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

.chrome-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3c4043;
    margin-bottom: 12px;
}

.chrome-popup-tabs {
    display: flex;
    position: relative;
    gap: 20px;
}

.chrome-tab {
    background: transparent;
    border: none;
    color: #9aa0a6;
    padding: 8px 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.chrome-tab.active {
    color: #fce8e6;
    /* Soft pinkish/white from image */
}

.chrome-tab:hover {
    color: #e8eaed;
}

.chrome-tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: #d01784;
    /* Pinkish indicator from image */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chrome-popup-icons {
    display: flex;
    gap: 8px;
}

.chrome-icon-btn {
    background: transparent;
    border: none;
    color: #9aa0a6;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.chrome-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8eaed;
}

.chrome-popup-body {
    padding-top: 4px;
}

.chrome-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    color: #e8eaed;
    user-select: none;
}

.chrome-checkbox-label input {
    display: none;
}

.chrome-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #5f6368;
    border-radius: 2px;
    position: relative;
    transition: all 0.2s;
}

.chrome-checkbox-label input:checked+.chrome-checkbox-custom {
    background: #8ab4f8;
    /* Google blue */
    border-color: #8ab4f8;
}

.chrome-checkbox-label input:checked+.chrome-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #202124;
    font-size: 12px;
    font-weight: bold;
}

/* Navbar Translate Widget Styling (Ghost container) */
#google_translate_element {
    display: none !important;
    /* Hide the default widget in index.html as we use full custom UI */
}

/* Fix for mobile */
@media (max-width: 480px) {
    #chrome-translate-popup {
        width: calc(100% - 40px);
        left: 20px !important;
        right: 20px !important;
        top: 80px !important;
    }
}