/* Azure Translator Styling */

/* Translation Progress Overlay */
#translationProgressOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.translation-progress-content {
    background: white;
    padding: 3rem 4rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.translation-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #007a33;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.translation-progress-content h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.translation-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.translation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007a33, #00a344);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

#translationProgressText {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}

/* Language Selector Styling */
#languageSelector {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

#languageSelector:hover {
    border-color: #007a33;
}

#languageSelector:focus {
    border-color: #007a33;
    box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.1);
}

/* Language selector in header */
.header-language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-language-selector label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

/* Dark mode support for translator */
.dark-mode #translationProgressOverlay {
    background: rgba(0, 0, 0, 0.85);
}

.dark-mode .translation-progress-content {
    background: #2a2a2a;
}

.dark-mode .translation-progress-content h3 {
    color: #ffffff;
}

.dark-mode #languageSelector {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #444;
}

.dark-mode #languageSelector:hover {
    border-color: #007a33;
}

/* Translation indicator badge */
.translation-active-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #007a33, #00a344);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* No translate class for elements that should not be translated */
.no-translate,
[data-no-translate] {
    /* Elements with this class will be excluded from translation */
    user-select: none;
}
