/* =================================
   Global Styles & Reset
   ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =================================
   Container & Layout
   ================================= */
.hojayfa-container1 {
    max-width: 1400px;
    margin: 0 auto;
}

/* =================================
   Hero Section
   ================================= */
.hojayfa-hero-section1 {
            text-align: center;
            margin-bottom: 1.5rem;
            padding: 1rem 0;
	color: #f70c3f;
        }

.hojayfa-hero-section1 h1 {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

.hojayfa-hero-section1 p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 10px;
}

/* =================================
   Content Area
   ================================= */
.hojayfa-content-area1 {
    padding: 40px 20px;
}

/* =================================
   Upload Zone
   ================================= */
.hojayfa-upload-zone1 {
    border: 3px dashed rgba(239, 68, 68, 0.5);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 30px;
}

.hojayfa-upload-zone1.hojayfa-dragover1 {
    border-color: #dc2626;
    background: #334155;
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.hojayfa-upload-icon1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: hojayfa-float1 3s ease-in-out infinite;
}

@keyframes hojayfa-float1 {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.hojayfa-upload-text1 {
    font-size: 1.3rem;
    color: #f1f5f9;
    margin-bottom: 10px;
    font-weight: 600;
}

.hojayfa-upload-subtext1 {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.hojayfa-browse-btn1 {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.hojayfa-browse-btn1:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

#hojayfaFileInput1 {
    display: none;
}

/* =================================
   Edit Controls
   ================================= */
.hojayfa-edit-controls1 {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #334155;
    display: none;
}

.hojayfa-edit-controls1.hojayfa-active1 {
    display: block;
}

.hojayfa-edit-controls1 h3 {
    color: #ef4444;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hojayfa-control-group1 {
    margin-bottom: 20px;
}

.hojayfa-control-group1 label {
    display: block;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.hojayfa-control-group1 input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #334155;
    outline: none;
    -webkit-appearance: none;
}

.hojayfa-control-group1 input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
    transition: all 0.2s ease;
}

.hojayfa-control-group1 input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 15px rgba(239, 68, 68, 0.7);
}

.hojayfa-control-group1 input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
}

.hojayfa-control-value1 {
    display: inline-block;
    background: #334155;
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 10px;
    min-width: 60px;
    text-align: center;
}

.hojayfa-control-row1 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hojayfa-control-row1 input[type="range"] {
    flex: 1;
}

/* =================================
   Live Preview
   ================================= */
.hojayfa-live-preview1 {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #334155;
    display: none;
}

.hojayfa-live-preview1.hojayfa-active1 {
    display: block;
}

.hojayfa-live-preview1 h3 {
    color: #ef4444;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hojayfa-live-preview-content1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hojayfa-preview-box1 {
    background: #0f172a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #334155;
    text-align: center;
}

.hojayfa-preview-box1 h4 {
    color: #cbd5e1;
    margin-bottom: 15px;
    font-size: 1rem;
}

.hojayfa-preview-box1 img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}

/* =================================
   Images Container
   ================================= */
.hojayfa-images-container1 {
    margin-top: 40px;
    display: none;
}

.hojayfa-images-container1.hojayfa-active1 {
    display: block;
}

/* =================================
   Batch Actions
   ================================= */
.hojayfa-batch-actions1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid #334155;
}

.hojayfa-image-count1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
}

.hojayfa-batch-buttons1 {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hojayfa-convert-all-btn1, 
.hojayfa-download-all-btn1 {
    padding: 12px 28px;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.hojayfa-convert-all-btn1 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.hojayfa-convert-all-btn1:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.5);
}

.hojayfa-convert-all-btn1:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.hojayfa-download-all-btn1 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.hojayfa-download-all-btn1:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
}

.hojayfa-download-all-btn1:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* =================================
   Images Grid
   ================================= */
.hojayfa-images-grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* =================================
   Image Card
   ================================= */
.hojayfa-image-card1 {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #334155;
}

.hojayfa-image-card1:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.hojayfa-image-preview-container1 {
    width: 100%;
    height: 220px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hojayfa-image-preview1 {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hojayfa-image-dimensions1 {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.9);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* =================================
   Image Info
   ================================= */
.hojayfa-image-info1 {
    padding: 20px;
}

.hojayfa-image-name1 {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.hojayfa-image-name-full1 {
    max-width: 20ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hojayfa-image-details1 {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hojayfa-image-details1 span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =================================
   Progress Bar
   ================================= */
.hojayfa-progress-container1 {
    margin-bottom: 12px;
    display: none;
}

.hojayfa-progress-bar1 {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.hojayfa-progress-fill1 {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.hojayfa-progress-text1 {
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
}

/* =================================
   Action Buttons
   ================================= */
.hojayfa-action-buttons1 {
    display: flex;
    gap: 10px;
}

.hojayfa-convert-btn1, 
.hojayfa-download-btn1, 
.hojayfa-preview-btn1, 
.hojayfa-delete-btn1 {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.hojayfa-convert-btn1 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.hojayfa-convert-btn1:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.5);
}

.hojayfa-convert-btn1:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.hojayfa-download-btn1 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.hojayfa-download-btn1:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.5);
}

.hojayfa-preview-btn1 {
    background: #334155;
    color: #f1f5f9;
    border: 1px solid #475569;
}

.hojayfa-preview-btn1:hover {
    background: #475569;
    border-color: #64748b;
}

.hojayfa-delete-btn1 {
    background: #334155;
    color: #f87171;
    border: 1px solid #475569;
    flex: 0.5;
}

.hojayfa-delete-btn1:hover {
    background: #7f1d1d;
    border-color: #ef4444;
}

/* =================================
   Status Badge
   ================================= */
.hojayfa-status-badge1 {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hojayfa-status-badge1.hojayfa-ready1 {
    background: #1e3a8a;
    color: #93c5fd;
}

.hojayfa-status-badge1.hojayfa-converting1 {
    background: #713f12;
    color: #fcd34d;
}

.hojayfa-status-badge1.hojayfa-completed1 {
    background: #064e3b;
    color: #6ee7b7;
}

.hojayfa-status-badge1.hojayfa-error1 {
    background: #7f1d1d;
    color: #fca5a5;
}

/* =================================
   Modal
   ================================= */
.hojayfa-modal1 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    animation: hojayfa-fadeIn1 0.3s ease;
}

.hojayfa-modal1.hojayfa-active1 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hojayfa-modal-content1 {
    background: #1e293b;
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: hojayfa-slideUp1 0.3s ease;
    border: 2px solid #334155;
}

.hojayfa-modal-header1 {
    padding: 20px;
    border-bottom: 2px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 10;
}

.hojayfa-modal-header1 h2 {
    font-size: 1.5rem;
    color: #ef4444;
}

.hojayfa-close-modal1 {
    background: #334155;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hojayfa-close-modal1:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.hojayfa-modal-body1 {
    padding: 20px;
}

/* =================================
   Comparison Container
   ================================= */
.hojayfa-comparison-container1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hojayfa-comparison-item1 {
    text-align: center;
    background: #0f172a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #334155;
}

.hojayfa-comparison-item1 h3 {
    margin-bottom: 15px;
    color: #cbd5e1;
    font-size: 1.1rem;
}

.hojayfa-comparison-item1 img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    background: #1e293b;
}

.hojayfa-comparison-stats1 {
    margin-top: 15px;
    padding: 15px;
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
}

.hojayfa-comparison-stats1 p {
    color: #94a3b8;
    margin: 5px 0;
    font-size: 0.9rem;
}

.hojayfa-comparison-stats1 .hojayfa-highlight1 {
    color: #ef4444;
    font-weight: 600;
}

/* =================================
   Animations
   ================================= */
@keyframes hojayfa-fadeIn1 {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes hojayfa-slideUp1 {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =================================
   Error Message
   ================================= */
.hojayfa-error-message1 {
    background: #7f1d1d;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.875rem;
    border: 1px solid #991b1b;
}

/* =================================
   Responsive Design
   ================================= */
@media (max-width: 1024px) {
    .hojayfa-images-grid1 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hojayfa-hero-section1 h1 {
        font-size: 1.8rem;
    }

    .hojayfa-hero-section1 p {
        font-size: 1rem;
    }

    .hojayfa-content-area1 {
        padding: 20px 15px;
    }

    .hojayfa-upload-zone1 {
        padding: 40px 15px;
    }

    .hojayfa-images-grid1 {
        grid-template-columns: 1fr;
    }

    .hojayfa-comparison-container1 {
        grid-template-columns: 1fr;
    }

    .hojayfa-batch-actions1 {
        flex-direction: column;
        align-items: stretch;
    }

    .hojayfa-batch-buttons1 {
        width: 100%;
        flex-direction: column;
    }

    .hojayfa-convert-all-btn1, 
    .hojayfa-download-all-btn1 {
        width: 100%;
    }

    .hojayfa-action-buttons1 {
        flex-wrap: wrap;
    }

    .hojayfa-convert-btn1, 
    .hojayfa-download-btn1, 
    .hojayfa-preview-btn1 {
        flex: 1 1 calc(50% - 5px);
        min-width: 120px;
    }

    .hojayfa-delete-btn1 {
        flex: 1 1 100%;
    }

    .hojayfa-live-preview-content1 {
        grid-template-columns: 1fr;
    }

    .hojayfa-edit-controls1,
    .hojayfa-live-preview1 {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hojayfa-hero-section1 h1 {
        font-size: 1.5rem;
    }

    .hojayfa-upload-icon1 {
        font-size: 3rem;
    }

    .hojayfa-upload-text1 {
        font-size: 1.1rem;
    }

    .hojayfa-modal-content1 {
        width: 95%;
    }
}