/**
 * 排隊回報功能樣式 - Modern Soft UI
 */

/* 排隊回報按鈕 */
.queue-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #FEF2F1;
    color: #E85D50;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-report-btn:hover {
    background-color: #FDDCDA;
}

.queue-report-btn:active {
    transform: scale(0.98);
}

.queue-report-btn i {
    font-size: 16px;
}

/* 排隊狀況顯示卡片 */
#queue-status-container {
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

.queue-status-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #E85D50;
}

.queue-status-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.queue-status-icon {
    font-size: 32px;
    line-height: 1;
}

.queue-status-info {
    flex: 1;
}

.queue-status-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1D1D1F;
}

.queue-status-meta {
    margin: 0;
    font-size: 13px;
    color: #6E6E73;
}

.queue-status-meta strong {
    color: #1D1D1F;
}

.queue-expires {
    color: #FF3B30;
    font-weight: 600;
}

.queue-status-image {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.queue-status-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.queue-status-image img:hover {
    transform: scale(1.02);
}

/* 模態框 */
.queue-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: flex-end;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

@media (min-width: 768px) {
    .queue-modal {
        align-items: center;
    }
}

.queue-modal-content {
    background: #FFFFFF;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

@media (min-width: 768px) {
    .queue-modal-content {
        border-radius: 24px;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    }
}

.queue-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #F0F0F2;
}

.queue-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1D1D1F;
}

.queue-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #AEAEB2;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.queue-modal-close:hover {
    background: #F5F5F7;
    color: #1D1D1F;
}

.queue-modal-body {
    padding: 24px;
}

/* 表單樣式 */
.queue-form-group {
    margin-bottom: 20px;
}

.queue-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1D1D1F;
    font-size: 14px;
}

.queue-label i {
    margin-right: 5px;
    color: #E85D50;
}

.required {
    color: #FF3B30;
}

.queue-select,
.queue-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E8E8ED;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: inherit;
    background-color: #FFFFFF;
    min-height: 44px;
}

.queue-select:focus,
.queue-input:focus {
    outline: none;
    border-color: #E85D50;
    box-shadow: 0 0 0 3px #FEF2F1;
}

.queue-file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed #E8E8ED;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.queue-file-input:hover {
    border-color: #E85D50;
    background: #FEF2F1;
}

.queue-image-preview {
    margin-top: 15px;
}

.queue-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    background: #F5F5F7;
    border-radius: 8px;
    font-size: 13px;
    color: #6E6E73;
}

.queue-file-info i {
    color: #E85D50;
}

.queue-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #AEAEB2;
    line-height: 1.5;
}

.queue-info-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #FEF2F1;
    border-left: 4px solid #E85D50;
    border-radius: 12px;
    margin-bottom: 20px;
}

.queue-info-box i {
    font-size: 20px;
    color: #E85D50;
    flex-shrink: 0;
}

.queue-info-box strong {
    color: #1D1D1F;
}

.queue-info-box ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.queue-info-box li {
    margin-bottom: 5px;
    font-size: 13px;
    color: #6E6E73;
}

.queue-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.queue-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.queue-btn-primary {
    background-color: #E85D50;
    color: white;
}

.queue-btn-primary:hover:not(:disabled) {
    background-color: #D94A3D;
}

.queue-btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}

.queue-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.queue-btn-secondary {
    background: #F5F5F7;
    color: #6E6E73;
}

.queue-btn-secondary:hover {
    background: #E8E8ED;
    color: #1D1D1F;
}

/* 動畫 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 響應式設計 */
@media (max-width: 767px) {
    .queue-modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .queue-modal-header,
    .queue-modal-body {
        padding: 16px 20px;
    }
    
    .queue-status-card {
        padding: 16px;
    }
    
    .queue-status-icon {
        font-size: 24px;
    }
    
    .queue-status-title {
        font-size: 16px;
    }
    
    .queue-modal-actions {
        flex-direction: column;
    }
    
    .queue-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 減少動態效果 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
