/* Content Request Wizard - RTL Optimized */

.content-wizard-container {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20002;
    width: 90%;
    max-width: 670px;
    max-height: 110vh;
    overflow: hidden;
}

.content-wizard-container.mobile-view {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: #FFFFFF;
}

.content-wizard-modal {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 32px;
    position: relative;
    direction: rtl;
    text-align: right;
}

.mobile-view .content-wizard-modal {
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Close Button */
.wizard-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.wizard-close:hover {
    color: #333;
}

/* Modal Title */
.wizard-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-align: center;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

/* Progress Bar with Step Counter */
.wizard-progress-container {
    margin-bottom: 24px;
}

.wizard-step-counter {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    text-align: left;  /* Left side in Hebrew/RTL */
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.wizard-progress {
    height: 4px;
    background: #E8E8E8;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #167FFC 0%, #264e7c 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Header */
.wizard-header {
    margin-bottom: 28px;
}

.wizard-step-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.wizard-step-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

/* Step Container */
.wizard-step {
    margin-bottom: 24px;
    min-height: 280px;
}

.mobile-view .wizard-step {
    flex: 1;
    overflow-y: auto;
}

/* Content Type Options (Step 1 & 2) */
.content-type-options,
.text-source-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-type-option,
.text-source-option {
    display: block;
    cursor: pointer;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
    background: #FAFAFA;
}

.content-type-option:hover,
.text-source-option:hover {
    border-color: #167FFC;
    background: #F8F9FF;
}

.content-type-option.selected,
.text-source-option.selected {
    border-color: #167FFC;
    background: #F0F2FF;
}

.content-type-option input[type="radio"],
.text-source-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.option-content i {
    font-size: 28px;
    color: #167FFC;
    min-width: 40px;
    text-align: center;
}

.option-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.option-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
    font-weight: 500;
}

/* Text Input (Step 3) */
.text-input-container,
.notes-container {
    position: relative;
}

.wizard-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
    resize: vertical;
    transition: border-color 0.2s;
    direction: rtl;
    text-align: right;
}

.wizard-textarea:focus {
    outline: none;
    border-color: #167FFC;
}

.wizard-textarea::placeholder {
    color: #999;
}

.char-counter {
    text-align: left;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

/* File Upload (Step 5) */
.file-upload-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upload-zone {
    border: 2px dashed #D0D0D0;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    background: #FAFAFA;
    transition: all 0.3s;
    position: relative;
}

.upload-zone.dragging {
    border-color: #167FFC;
    background: #F0F2FF;
}

.upload-zone i {
    font-size: 48px;
    color: #167FFC;
    margin-bottom: 16px;
    display: block;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.upload-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.upload-trigger {
    display: inline-block;
    padding: 10px 24px;
    background: #167FFC;
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.upload-trigger:hover {
    background: #167FFC;
}

/* Uploaded Files List */
.uploaded-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-info i {
    color: #167FFC;
    font-size: 18px;
}

.file-name {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    flex: 1;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.file-size {
    font-size: 12px;
    color: #999;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.file-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.file-remove:hover {
    color: #e74c3c;
}

/* Skip Button */
.skip-button {
    padding: 12px 24px;
    background: #F0F0F0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.skip-button:hover {
    background: #E0E0E0;
    color: #333;
}

.skip-button i {
    font-size: 16px;
}

/* Footer Navigation */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E8E8E8;
}

.wizard-nav-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.wizard-nav-btn.prev {
    background: #F0F0F0;
    color: #666;
}

.wizard-nav-btn.prev:hover {
    background: #E0E0E0;
    color: #333;
}

.wizard-nav-btn.next {
    background: #167FFC;
    color: #FFFFFF;
    margin-right: auto;
}

.wizard-nav-btn.next:hover {
    background: #21599c;
}

.wizard-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard-nav-btn:disabled:hover {
    background: #2978d5;
}

.wizard-nav-btn i {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-wizard-modal {
        padding: 24px 16px;
    }

    .wizard-step {
        min-height: auto;
    }

    .wizard-step-title {
        font-size: 20px;
    }

    .upload-zone {
        padding: 32px 16px;
    }

    .upload-zone i {
        font-size: 36px;
    }

    .wizard-nav-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Summary & Progress Screen (Step 6) */
.summary-container {
    padding: 20px 0;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.summary-section:last-of-type {
    border-bottom: none;
}

.summary-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.summary-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.summary-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

/* Upload Progress Section */
.upload-progress-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #F0F0F0;
}

.upload-items {
    margin-top: 16px;
}

.upload-item {
    background: #F8F9FA;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.upload-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.upload-item-header i:first-child {
    color: #167FFC;
    font-size: 18px;
}

.upload-item-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

.upload-status-icon {
    font-size: 18px;
    color: #28a745;
}

.upload-status-icon.error {
    color: #dc3545;
}

.upload-status-icon.fa-spin {
    color: #167FFC;
}

.upload-progress-bar {
    height: 6px;
    background: #E8E8E8;
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #167FFC 0%, #264e7c 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.upload-item.done .upload-progress-bar {
    display: none;
}

/* Summary Complete */
.summary-complete {
    text-align: center;
    padding: 32px 20px;
    margin-top: 24px;
    background: #f0f9ff;
    border-radius: 12px;
}

.summary-complete i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 16px;
    display: block;
}

.summary-complete p {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

/* Additional Utility */
[bc-file-drop] {
    position: relative;
}

.upload-progress-text {
    text-align: center;
    font-size: 13px;
    color: #167FFC;
    margin-top: 8px;
    font-weight: 600;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}

/* Summary Error */
.summary-error {
    text-align: center;
    padding: 32px 20px;
    margin-top: 24px;
    background: #ffebee;
    border-radius: 12px;
}

.summary-error i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 16px;
    display: block;
}

.summary-error p {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Open Sans Hebrew', 'Open Sans', sans-serif;
}
