/**
 * Waitlist Modal Styles
 * Styles for the view-waitlist and join-waitlist modals
 */

/* Waitlist Modals - Content Width */
#join-waitlist-modal .ttrs-modal-content,
#view-waitlist-modal .ttrs-modal-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* View Waitlist Modal Specific Styling - Professional Design */
#view-waitlist-modal .ttrs-modal-dialog {
    width: 100% !important;
    margin: 0 auto !important;
}

#view-waitlist-modal .ttrs-modal-body {
    padding: 24px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

#view-waitlist-modal .booking-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#view-waitlist-modal .booking-summary h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 12px;
}

#view-waitlist-modal .booking-summary p {
    margin: 8px 0;
    color: #495057;
    font-size: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#view-waitlist-modal .booking-summary strong {
    color: #2c3e50;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

/* Professional Modal Header */
#view-waitlist-modal .ttrs-modal-header {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    border-bottom: none;
    padding: 24px;
    text-align: center;
}

#view-waitlist-modal .ttrs-modal-header h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

#view-waitlist-modal .ttrs-modal-close {
    color: white;
    font-size: 28px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#view-waitlist-modal .ttrs-modal-close:hover {
    opacity: 1;
    color: #fff;
}

/* Waitlist Display Styles - Professional Layout */
.waitlist-entries-list {
    margin-top: 0;
    text-align: center;
}

.waitlist-entries-list h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 16px 0;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.waitlist-entries-list h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #2271b1;
}

/* Waitlist Entry Card */
.waitlist-entry {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow-x: auto;
}

.waitlist-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 12px 0 0 12px;
}

.waitlist-entry:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #2271b1;
    transform: translateY(-2px);
}

.waitlist-entry.current-user {
    background: #f0f7ff;
    border-color: #90caf9;
}

/* Waitlist Entry Header */
.waitlist-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
}

.waitlist-position {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
    letter-spacing: 0.5px;
}

.waitlist-user {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    flex: 1;
    text-align: center;
    letter-spacing: 0.3px;
}

.waitlist-date {
    font-size: 13px;
    color: #6c757d;
    flex-shrink: 0;
    text-align: right;
    min-width: 160px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Waitlist Entry Details */
.waitlist-entry-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #495057;
    margin-top: 12px;
    flex-wrap: wrap;
}

.waitlist-holes,
.waitlist-preference {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.waitlist-holes {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.waitlist-preference {
    background: linear-gradient(135deg, #6f42c1 0%, #3a2561 100%);
}

.waitlist-notes {
    font-style: italic;
    color: #6c757d;
    font-size: 13px;
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    text-align: center;
}

/* Empty Waitlist State - Professional */
.waitlist-empty {
    text-align: center;
    padding: 60px 40px;
    color: #6c757d;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    margin-top: 24px;
}

.waitlist-empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.6;
    color: #2271b1;
}

.waitlist-empty h4 {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 20px;
    font-weight: 700;
}

.waitlist-empty p {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-empty-subtitle {
    font-size: 13px !important;
    opacity: 0.8;
    font-weight: 500;
}

/* Loading State - Professional */
.ttrs-loading {
    text-align: center;
    padding: 60px 40px;
    color: #6c757d;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 16px;
    margin-top: 24px;
    font-weight: 500;
}

/* Remove From Waitlist Button */
.remove-from-waitlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.remove-from-waitlist-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Position Badge Alternative Styles */
.position-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.current-user .position-badge {
    background: #1976d2;
    color: white;
}

/* Waitlist Info Section */
.waitlist-info {
    margin-top: 1rem;
}

.waitlist-info p {
    margin: 0.5rem 0;
    color: #555;
}

/* Entry Header Alternative Styles */
.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.entry-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

/* Waitlist Date Helper */
.ttrs-waitlist-date {
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments for waitlist modal */
@media (max-width: 768px) {
    #view-waitlist-modal .ttrs-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    #view-waitlist-modal .ttrs-modal-body {
        padding: 20px;
    }
    
    .waitlist-entry-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
    
    .waitlist-date {
        text-align: center;
        min-width: auto;
    }
    
    .waitlist-entry-details {
        justify-content: center;
    }
    
    .waitlist-empty {
        padding: 40px 20px;
    }
    
    .waitlist-empty-icon {
        font-size: 48px;
    }
}
