/**
 * Multilingual CSS
 * Styles for multilingual support
 */

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    line-height: 18px;
    font-weight: 600;
    color: #333;
}

.language-switcher .lang-option {
    cursor: pointer;
    transition: color 0.3s ease;
}

.language-switcher .lang-option:hover {
    color: #007cba;
}

.language-switcher .lang-option.active {
    color: #333;
    font-weight: 600;
}

.language-switcher .lang-option.inactive {
    color: #999;
}

.language-switcher .separator {
    width: 2px;
    height: 14px;
    background-color: #333;
    margin-top: 2px;
}

/* Translated Message Styles */
.translated-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.translated-message.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.translated-message.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.translated-message.message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.translated-message.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Language Loading Overlay */
#language-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#language-loading div {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* Form Translation Support */
[data-translate] {
    transition: opacity 0.3s ease;
}

[data-translate-placeholder] {
    transition: all 0.3s ease;
}

[data-translate-title] {
    transition: all 0.3s ease;
}

[data-translate-value] {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .translated-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .language-switcher {
        font-size: 14px;
        gap: 6px;
    }
}