/* Popup Fix Styles */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-container {
    background-color: #1e293b; /* slate-800 */
    border: 1px solid rgba(16, 185, 129, 0.3); /* emerald-500/30 */
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    position: relative;
    transform: scale(0.95);
    transition: all 0.3s ease;
    color: white;
}

.custom-modal-overlay.active .custom-modal-container {
    transform: scale(1);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.custom-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.custom-modal-close {
    color: #94a3b8; /* slate-400 */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.custom-modal-close:hover {
    color: white;
}

.custom-form-group {
    margin-bottom: 1rem;
}

.custom-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.custom-input, .custom-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #334155; /* slate-700 */
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.5rem;
    color: white;
    outline: none;
    transition: border-color 0.2s;
}

.custom-input:focus, .custom-textarea:focus {
    border-color: #34d399; /* emerald-400 */
}

.custom-submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #10b981; /* emerald-500 */
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.custom-submit-btn:hover {
    background-color: #059669; /* emerald-600 */
}

.custom-submit-btn:disabled {
    background-color: #64748b;
    cursor: not-allowed;
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
}

.lang-btn {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.lang-btn.active {
    background: #10b981;
    color: white;
}

.status-msg {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: none;
}

.status-msg.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-msg.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
