/* Professional Baloan Popup Styles */

/* Overlay */
.baloan-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.baloan-popup-overlay.show {
    opacity: 1;
}

/* Main Popup Container */
.baloan-popup {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.baloan-popup-overlay.show .baloan-popup {
    transform: scale(1) translateY(0);
}

/* Error Banner */
.baloan-error-banner {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.baloan-error-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}

.baloan-error-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.baloan-error-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 300;
    margin-right: 8px;
}

.baloan-error-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.baloan-error-close svg {
    width: 12px;
    height: 12px;
}

/* Header */
.baloan-popup-header {
    padding: 28px 32px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.baloan-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-icon svg {
    color: white;
}

.baloan-popup-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    flex: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Close Button */
.baloan-popup-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.baloan-popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.baloan-popup-close svg {
    width: 20px;
    height: 20px;
}

/* Content */
.baloan-popup-content {
    padding: 32px;
    direction: rtl;
    background: #ffffff;
}

.content-header {
    text-align: center;
    margin-bottom: 32px;
}

.info-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.info-icon svg {
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.2));
}

.baloan-popup-content p {
    margin: 0 0 24px 0;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.form-group label svg {
    color: #667eea;
}

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #2d3748;
    font-family: inherit;
    box-sizing: border-box;
    text-align: center;
    direction: ltr;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

/* Button Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.baloan-btn {
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    font-family: inherit;
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.baloan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.baloan-btn:hover::before {
    left: 100%;
}

.baloan-btn svg {
    width: 18px;
    height: 18px;
}

/* Primary Button */
.baloan-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.baloan-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.baloan-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Secondary Button */
.baloan-btn-secondary {
    background: #ffffff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.baloan-btn-secondary:hover {
    background: #f7fafc;
    color: #2d3748;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.baloan-btn-secondary:active {
    transform: translateY(0);
}

/* Loading State */
.baloan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 480px) {
    .baloan-popup {
        width: 95%;
        margin: 20px;
        border-radius: 20px;
    }
    
    .baloan-popup-header {
        padding: 24px 24px 20px;
    }
    
    .baloan-popup-header h3 {
        font-size: 20px;
    }
    
    .baloan-popup-content {
        padding: 24px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .baloan-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .header-icon {
        width: 32px;
        height: 32px;
    }
    
    .header-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation for form elements */
.form-group {
    animation: slideInUp 0.6s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-actions { animation-delay: 0.3s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus ring for accessibility */
.baloan-popup-close:focus,
.baloan-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .baloan-popup {
        border: 2px solid #000000;
    }
    
    .baloan-popup-header {
        background: #000000;
    }
    
    .baloan-btn-primary {
        background: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .baloan-popup-overlay,
    .baloan-popup,
    .baloan-popup-close,
    .baloan-btn,
    .form-group input {
        transition: none;
    }
    
    .baloan-popup-overlay.show .baloan-popup {
        transform: scale(1);
    }
} 