/**
 * Gift Selection Modal Styles - TeslaServer Theme
 * استایل پاپ‌آپ انتخاب هدایا
 */

/* Modal Dialog - Compact Size */
#giftSelectionModal .modal-dialog {
    max-width: 480px;
}

/* Modal Header */
#giftSelectionModal .modal-header {
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    color: white;
    border-bottom: none;
    padding: 1rem 1.25rem;
}

#giftSelectionModal .modal-header .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#giftSelectionModal .modal-header .modal-title i {
    font-size: 1.3rem;
}

#giftSelectionModal .modal-header .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 1.75rem;
    font-weight: 300;
}

#giftSelectionModal .modal-header .close:hover {
    opacity: 1;
}

/* Gift Notice Banner */
#giftSelectionModal .gift-notice {
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    color: white;
    padding: 0.65rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

#giftSelectionModal .gift-notice i {
    margin-left: 0.5rem;
}

/* Modal Body */
#giftSelectionModal .modal-body {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    max-height: 60vh;
    overflow-y: auto;
}

/* Gift Selection Options Container */
.gift-selection-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible !important;
}

/* Individual Gift Selection Box */
.gift-selection-box {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: visible !important;
}

/* Form Group Styling */
.gift-selection-box .form-group {
    margin-bottom: 0;
    overflow: visible;
    position: relative;
}

.gift-selection-box label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.gift-selection-box label i {
    color: #0080FF;
    margin-left: 0.35rem;
}

/* Select Dropdown Styling */
.gift-select-dropdown {
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: white !important;
    transition: all 0.3s ease;
    position: relative !important;
    z-index: 1 !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 38px !important;
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
}

.gift-select-dropdown:focus {
    border-color: #0080FF;
    box-shadow: 0 0 0 0.15rem rgba(0, 128, 255, 0.15);
    outline: none;
    z-index: 2;
}

.gift-select-dropdown option {
    padding: 0.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
    background: white;
    color: #333;
}

/* Modal Footer */
#giftSelectionModal .modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 0.75rem 1.25rem;
    background: white;
}

/* Confirm Button Styling */
#confirmGiftSelection {
    background: linear-gradient(135deg, #0080FF 0%, #0066CC 100%);
    border: none;
}

#confirmGiftSelection:hover {
    background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
}

/* Responsive */
@media (max-width: 576px) {
    #giftSelectionModal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
    }

    #giftSelectionModal .modal-body {
        padding: 0.75rem 1rem;
    }

    .gift-selection-box {
        padding: 0.75rem;
    }

    .gift-selection-box label {
        font-size: 0.85rem;
    }

    .gift-select-dropdown {
        font-size: 0.85rem;
        padding: 0.45rem 0.65rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gift-selection-box {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.gift-selection-box:nth-child(1) { animation-delay: 0.05s; }
.gift-selection-box:nth-child(2) { animation-delay: 0.1s; }
.gift-selection-box:nth-child(3) { animation-delay: 0.15s; }
.gift-selection-box:nth-child(4) { animation-delay: 0.2s; }

/* RTL Support */
[dir="rtl"] .gift-selection-options {
    text-align: right;
}

[dir="rtl"] .gift-selection-box label {
    text-align: right;
}

[dir="rtl"] .gift-select-dropdown {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .gift-select-dropdown option {
    text-align: right;
    direction: rtl;
    padding: 0.5rem 0.75rem;
}

