/* ========== CSS VARIABLES & RESET - HOJAYFA ========== */
:root {
    --hojayfa-color-bg1: #0f172a;
    --hojayfa-color-card2: #1e293b;
    --hojayfa-color-text3: #f1f5f9;
    --hojayfa-color-text-secondary4: #cbd5e1;
    --hojayfa-color-text-muted5: #94a3b8;
    --hojayfa-color-border6: #334155;
    --hojayfa-color-primary7: #ef4444;
    --hojayfa-color-primary-hover8: #dc2626;
    --hojayfa-color-primary-light9: rgba(239, 68, 68, 0.1);
    --hojayfa-color-success10: #10b981;
    --hojayfa-color-success-light11: rgba(16, 185, 129, 0.1);
    --hojayfa-color-error12: #ef4444;
    --hojayfa-color-error-light13: rgba(239, 68, 68, 0.1);
    --hojayfa-shadow-sm14: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --hojayfa-shadow-md15: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --hojayfa-shadow-lg16: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --hojayfa-radius17: 12px;
    --hojayfa-radius-sm18: 8px;
    --hojayfa-transition19: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== MAIN CONTAINER - HOJAYFA ========== */
.hojayfa-app-container1 {
    max-width: 1200px;
    margin: 0 auto;
}

.hojayfa-main-card69 {
    border-radius: var(--hojayfa-radius17);
    overflow: hidden;
}

.hojayfa-tool-header2 {
            text-align: center;
            margin-bottom: 1.5rem;
            padding: 1rem 0;
	color: #f70c3f;
        }

.hojayfa-tool-header2 h1 {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

.hojayfa-tool-header2 p {
    font-size: 0.95rem;
    color: var(--hojayfa-color-text-muted5);
}

/* ========== UPLOAD DROPZONE COMPONENT - HOJAYFA ========== */
.hojayfa-upload-section3 {
    padding: 40px 24px;
    border-bottom: 2px dashed var(--hojayfa-color-border6);
    text-align: center;
    transition: var(--hojayfa-transition19);
	   border: 3px dashed rgba(239, 68, 68, 0.5);
}

.hojayfa-upload-section3.hojayfa-drag-over4 {
    background: var(--hojayfa-color-primary-light9);
    border-color: var(--hojayfa-color-primary7);
}

.hojayfa-dropzone5 {
    position: relative;
    cursor: pointer;
}

.hojayfa-dropzone-icon6 {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--hojayfa-color-primary-light9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hojayfa-dropzone-icon6 svg {
    width: 32px;
    height: 32px;
    color: var(--hojayfa-color-primary7);
}

.hojayfa-dropzone-title7 {
    font-size: 18px;
    font-weight: 600;
    color: var(--hojayfa-color-text3);
    margin-bottom: 8px;
}

.hojayfa-dropzone-subtitle8 {
    font-size: 14px;
    color: var(--hojayfa-color-text-secondary4);
    margin-bottom: 16px;
}

.hojayfa-btn-browse9 {
    display: inline-block;
    background: var(--hojayfa-color-primary7);
    color: white;
    padding: 12px 32px;
    border-radius: var(--hojayfa-radius-sm18);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--hojayfa-transition19);
    min-height: 44px;
    min-width: 44px;
}

.hojayfa-btn-browse9:hover {
    background: var(--hojayfa-color-primary-hover8);
    transform: translateY(-1px);
    box-shadow: var(--hojayfa-shadow-md15);
}

.hojayfa-dropzone-formats10 {
    font-size: 12px;
    color: var(--hojayfa-color-text-muted5);
    margin-top: 12px;
}

.hojayfa-dropzone-note11 {
    font-size: 11px;
    color: var(--hojayfa-color-text-muted5);
    margin-top: 8px;
    font-style: italic;
}

input[type="file"] {
    display: none;
}

/* ========== EDITOR SECTION - HOJAYFA ========== */
.hojayfa-editor-section12 {
    padding: 24px;
    border-bottom: 2px solid var(--hojayfa-color-border6);
    display: none;
}

.hojayfa-editor-section12.hojayfa-active13 {
    display: block;
}

.hojayfa-editor-title14 {
    font-size: 16px;
    font-weight: 600;
    color: var(--hojayfa-color-text3);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hojayfa-editor-title14 svg {
    width: 20px;
    height: 20px;
    color: var(--hojayfa-color-primary7);
}

.hojayfa-editor-controls15 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .hojayfa-editor-controls15 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hojayfa-editor-controls15 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hojayfa-control-group16 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hojayfa-control-label17 {
    font-size: 12px;
    font-weight: 500;
    color: var(--hojayfa-color-text-secondary4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hojayfa-control-input18 {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--hojayfa-color-border6);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--hojayfa-color-primary7);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--hojayfa-color-primary7);
    cursor: pointer;
    border: none;
}

.hojayfa-control-value19 {
    font-size: 13px;
    font-weight: 600;
    color: var(--hojayfa-color-text3);
    min-width: 40px;
    text-align: right;
}

.hojayfa-editor-actions20 {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========== GLOBAL ACTIONS BAR - HOJAYFA ========== */
.hojayfa-global-actions21 {
    padding: 16px 24px;
    border-bottom: 1px solid var(--hojayfa-color-border6);
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.hojayfa-global-actions21.hojayfa-active13 {
    display: flex;
}

.hojayfa-global-progress22 {
    flex: 1;
    min-width: 200px;
}

.hojayfa-global-progress-text23 {
    font-size: 13px;
    color: var(--hojayfa-color-text-secondary4);
    margin-bottom: 4px;
    font-weight: 500;
}

.hojayfa-global-progress-bar24 {
    height: 8px;
    background: var(--hojayfa-color-border6);
    border-radius: 4px;
    overflow: hidden;
}

.hojayfa-global-progress-fill25 {
    height: 100%;
    background: var(--hojayfa-color-primary7);
    transition: width 0.3s ease;
}

.hojayfa-action-buttons26 {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hojayfa-btn27 {
    padding: 8px 16px;
    border-radius: var(--hojayfa-radius-sm18);
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--hojayfa-transition19);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
}

.hojayfa-btn27:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hojayfa-btn-primary28 {
    background: var(--hojayfa-color-primary7);
    color: white;
}

.hojayfa-btn-primary28:hover:not(:disabled) {
    background: var(--hojayfa-color-primary-hover8);
    transform: translateY(-1px);
    box-shadow: var(--hojayfa-shadow-md15);
}

.hojayfa-btn-secondary29 {
    background: var(--hojayfa-color-border6);
    color: var(--hojayfa-color-text-secondary4);
}

.hojayfa-btn-secondary29:hover:not(:disabled) {
    background: #475569;
}

.hojayfa-btn-danger30 {
    background: var(--hojayfa-color-error12);
    color: white;
}

.hojayfa-btn-danger30:hover:not(:disabled) {
    background: #dc2626;
}

.hojayfa-btn27 svg {
    width: 16px;
    height: 16px;
}

/* ========== FILE QUEUE / GALLERY - HOJAYFA ========== */
.hojayfa-queue-section31 {
    padding: 24px;
    max-height: 600px;
    overflow-y: auto;
}

.hojayfa-queue-empty32 {
    text-align: center;
    padding: 60px 20px;
    color: var(--hojayfa-color-text-muted5);
}

.hojayfa-queue-empty32 svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.hojayfa-file-grid33 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .hojayfa-file-grid33 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hojayfa-file-grid33 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hojayfa-file-grid33 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== FILE CARD COMPONENT - HOJAYFA ========== */
.hojayfa-file-card34 {
    border: 1px solid var(--hojayfa-color-border6);
    border-radius: var(--hojayfa-radius-sm18);
    padding: 12px;
    transition: var(--hojayfa-transition19);
    position: relative;
}

.hojayfa-file-card34:hover {
    box-shadow: var(--hojayfa-shadow-md15);
    transform: translateY(-2px);
}

.hojayfa-file-card34.hojayfa-queued35 {
    border-color: var(--hojayfa-color-border6);
}

.hojayfa-file-card34.hojayfa-processing36 {
    border-color: var(--hojayfa-color-primary7);
}

.hojayfa-file-card34.hojayfa-completed37 {
    border-color: var(--hojayfa-color-success10);
}

.hojayfa-file-card34.hojayfa-error38 {
    border-color: var(--hojayfa-color-error12);
    background: var(--hojayfa-color-error-light13);
}

.hojayfa-file-thumbnail-container39 {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--hojayfa-radius-sm18);
    overflow: hidden;
    background: var(--hojayfa-color-card2);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hojayfa-file-thumbnail40 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hojayfa-file-info41 {
    margin-bottom: 12px;
}

.hojayfa-file-name42 {
    font-size: 13px;
    font-weight: 600;
    color: var(--hojayfa-color-text3);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.hojayfa-file-name-highlight43 {
    color: var(--hojayfa-color-primary7);
}

.hojayfa-file-meta44 {
    font-size: 11px;
    color: var(--hojayfa-color-text-muted5);
    margin-bottom: 2px;
}

.hojayfa-file-status45 {
    display: inline-block;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 4px;
}

.hojayfa-file-status45.hojayfa-queued35 {
    background: var(--hojayfa-color-border6);
    color: var(--hojayfa-color-text-secondary4);
}

.hojayfa-file-status45.hojayfa-processing36 {
    background: var(--hojayfa-color-primary-light9);
    color: var(--hojayfa-color-primary7);
}

.hojayfa-file-status45.hojayfa-completed37 {
    background: var(--hojayfa-color-success-light11);
    color: var(--hojayfa-color-success10);
}

.hojayfa-file-status45.hojayfa-error38 {
    background: var(--hojayfa-color-error-light13);
    color: var(--hojayfa-color-error12);
}

/* ========== PROGRESS BAR COMPONENT - HOJAYFA ========== */
.hojayfa-progress-container46 {
    margin-bottom: 12px;
}

.hojayfa-progress-bar47 {
    height: 4px;
    background: var(--hojayfa-color-border6);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.hojayfa-progress-fill48 {
    height: 100%;
    background: var(--hojayfa-color-primary7);
    transition: width 0.3s ease;
}

.hojayfa-progress-fill48.hojayfa-completed37 {
    background: var(--hojayfa-color-success10);
}

.hojayfa-progress-fill48.hojayfa-error38 {
    background: var(--hojayfa-color-error12);
}

.hojayfa-progress-text49 {
    font-size: 10px;
    color: var(--hojayfa-color-text-muted5);
}

/* ========== FILE ACTIONS - HOJAYFA ========== */
.hojayfa-file-actions50 {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hojayfa-btn-sm51 {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 32px;
    flex: 1;
    justify-content: center;
}

.hojayfa-btn-icon52 {
    padding: 6px;
    min-width: 32px;
    justify-content: center;
}

/* ========== PREVIEW MODAL - HOJAYFA ========== */
.hojayfa-modal-overlay53 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: hojayfa-fadeIn54 0.2s ease;
}

.hojayfa-modal-overlay53.hojayfa-active13 {
    display: flex;
}

@keyframes hojayfa-fadeIn54 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hojayfa-modal-content55 {
    background: var(--hojayfa-color-card2);
    border-radius: var(--hojayfa-radius17);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    animation: hojayfa-slideUp56 0.3s ease;
    border: 1px solid var(--hojayfa-color-border6);
}

@keyframes hojayfa-slideUp56 {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hojayfa-modal-header57 {
    padding: 20px 24px;
    border-bottom: 1px solid var(--hojayfa-color-border6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hojayfa-modal-title58 {
    font-size: 18px;
    font-weight: 600;
    color: var(--hojayfa-color-text3);
}

.hojayfa-btn-close59 {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--hojayfa-transition19);
    min-height: 44px;
    min-width: 44px;
    color: var(--hojayfa-color-text3);
}

.hojayfa-btn-close59:hover {
    background: var(--hojayfa-color-bg1);
}

.hojayfa-btn-close59 svg {
    width: 24px;
    height: 24px;
}

.hojayfa-modal-body60 {
    padding: 24px;
}

.hojayfa-preview-container61 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .hojayfa-preview-container61 {
        grid-template-columns: 1fr 1fr;
    }
}

.hojayfa-preview-section62 {
    text-align: center;
}

.hojayfa-preview-label63 {
    font-size: 14px;
    font-weight: 600;
    color: var(--hojayfa-color-text-secondary4);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hojayfa-preview-image-container64 {
    background: var(--hojayfa-color-bg1);
    border-radius: var(--hojayfa-radius-sm18);
    padding: 16px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    border: 1px solid var(--hojayfa-color-border6);
}

.hojayfa-preview-image65 {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--hojayfa-radius-sm18);
}

.hojayfa-preview-meta66 {
    margin-top: 12px;
    font-size: 12px;
    color: var(--hojayfa-color-text-muted5);
    text-align: left;
}

.hojayfa-modal-footer67 {
    padding: 20px 24px;
    border-top: 1px solid var(--hojayfa-color-border6);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========== UTILITIES - HOJAYFA ========== */
.hojayfa-hidden68 {
    display: none !important;
}

/* ========== RESPONSIVE ADJUSTMENTS - HOJAYFA ========== */
@media (max-width: 640px) {
    body {
        padding: 8px;
    }

    .hojayfa-upload-section3 {
        padding: 24px 16px;
    }

    .hojayfa-global-actions21 {
        padding: 12px 16px;
    }

    .hojayfa-queue-section31 {
        padding: 16px;
    }

    .hojayfa-action-buttons26 {
        width: 100%;
    }

    .hojayfa-action-buttons26 .hojayfa-btn27 {
        flex: 1;
    }

    .hojayfa-modal-body60 {
        padding: 16px;
    }

    .hojayfa-tool-header2 h1 {
        font-size: 1.5rem;
    }
}