/* ═══════════════════════════════════════════════════════════
   HOJAYFA DARK THEME DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Hojayfa Dark Color Palette */
    --hojayfa-primary1: #dc2626;
    --hojayfa-primary-dark1: #b91c1c;
    --hojayfa-primary-light1: #ef4444;
    --hojayfa-success1: #dc2626;
    --hojayfa-warning1: #f59e0b;
    --hojayfa-danger1: #dc2626;
    
    /* Hojayfa Dark Theme Colors */
    --hojayfa-bg-main1: #0f0f0f;
    --hojayfa-bg-card1: #1a1a1a;
    --hojayfa-bg-hover1: #252525;
    --hojayfa-bg-input1: #2a2a2a;
    --hojayfa-border1: #333333;
    --hojayfa-border-light1: #404040;
    
    /* Hojayfa Text Colors */
    --hojayfa-text-primary1: #f5f5f5;
    --hojayfa-text-secondary1: #b0b0b0;
    --hojayfa-text-muted1: #808080;
    --hojayfa-text-highlight1: #fbbf24;
    
    /* Hojayfa Spacing System */
    --hojayfa-space-xs1: 0.5rem;
    --hojayfa-space-sm1: 0.75rem;
    --hojayfa-space-md1: 1rem;
    --hojayfa-space-lg1: 1.5rem;
    --hojayfa-space-xl1: 2rem;
    --hojayfa-space-2xl1: 3rem;
    
    /* Hojayfa Border Radius */
    --hojayfa-radius-sm1: 0.375rem;
    --hojayfa-radius-md1: 0.5rem;
    --hojayfa-radius-lg1: 0.75rem;
    --hojayfa-radius-xl1: 1rem;
    
    /* Hojayfa Shadows */
    --hojayfa-shadow-sm1: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --hojayfa-shadow-md1: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --hojayfa-shadow-lg1: 0 10px 20px -3px rgba(0, 0, 0, 0.7);
    --hojayfa-shadow-red1: 0 0 20px rgba(220, 38, 38, 0.3);
    
    /* Hojayfa Typography */
    --hojayfa-font-sans1: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hojayfa-compressor1 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA CONTAINER & LAYOUT
   ═══════════════════════════════════════════════════════════ */

.hojayfa-container1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--hojayfa-space-lg1);
    color: var(--hojayfa-text-primary1);
    font-family: var(--hojayfa-font-sans1);
}

/* Hojayfa Tool Header */
.hojayfa-tool-header1 {
            text-align: center;
            margin-bottom: 1.5rem;
            padding: 1rem 0;
	color: #f70c3f;
        }

.hojayfa-tool-header1 h1 {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

.hojayfa-tool-header1 p {
    color: var(--hojayfa-text-secondary1);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.hojayfa-tool-header1 p .hojayfa-highlight-text1 {
    color: var(--hojayfa-text-highlight1);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA UPLOAD AREA
   ═══════════════════════════════════════════════════════════ */

.hojayfa-upload-area1 {
   border: 3px dashed rgba(239, 68, 68, 0.5);
    border-radius: var(--hojayfa-radius-xl1);
    padding: var(--hojayfa-space-2xl1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--hojayfa-space-xl1);
    position: relative;
    overflow: hidden;
}

.hojayfa-upload-area1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hojayfa-upload-icon1 {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--hojayfa-space-md1);
    color: var(--hojayfa-primary1);
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
}

.hojayfa-upload-area1 h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--hojayfa-space-sm1);
    color: var(--hojayfa-text-primary1);
}

.hojayfa-upload-area1 p {
    color: var(--hojayfa-text-secondary1);
    margin-bottom: var(--hojayfa-space-md1);
}

/* Hojayfa Button Styles */
.hojayfa-upload-button1 {
    display: inline-block;
    background: var(--hojayfa-primary1);
    color: white;
    padding: var(--hojayfa-space-sm1) var(--hojayfa-space-xl1);
    border-radius: var(--hojayfa-radius-md1);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hojayfa-upload-button1:hover {
    background: var(--hojayfa-primary-dark1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.hojayfa-upload-button1:active {
    transform: translateY(0);
}

.hojayfa-file-formats1 {
    margin-top: var(--hojayfa-space-md1);
    font-size: 0.875rem;
    color: var(--hojayfa-text-muted1);
}

.hojayfa-file-formats1 .hojayfa-highlight-format1 {
    color: var(--hojayfa-text-highlight1);
    font-weight: 600;
}

#hojayfaFileInput1 {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA IMAGE PREVIEW CAROUSEL
   ═══════════════════════════════════════════════════════════ */

.hojayfa-preview-section1 {
    display: none;
    background: var(--hojayfa-bg-card1);
    border-radius: var(--hojayfa-radius-lg1);
    padding: var(--hojayfa-space-lg1);
    margin-bottom: var(--hojayfa-space-xl1);
    box-shadow: var(--hojayfa-shadow-md1);
    border: 1px solid var(--hojayfa-border1);
}

.hojayfa-preview-section1.hojayfa-visible1 {
    display: block;
}

.hojayfa-preview-header1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--hojayfa-space-md1);
}

.hojayfa-preview-header1 h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hojayfa-text-primary1);
}

.hojayfa-preview-header1 h3 .hojayfa-icon1 {
    color: var(--hojayfa-primary1);
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.hojayfa-image-count1 {
    background: var(--hojayfa-primary1);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--hojayfa-radius-md1);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.hojayfa-preview-carousel1 {
    display: flex;
    gap: var(--hojayfa-space-md1);
    overflow-x: auto;
    padding-bottom: var(--hojayfa-space-md1);
    scroll-behavior: smooth;
}

.hojayfa-preview-carousel1::-webkit-scrollbar {
    height: 8px;
}

.hojayfa-preview-carousel1::-webkit-scrollbar-track {
    background: var(--hojayfa-bg-input1);
    border-radius: 4px;
}

.hojayfa-preview-carousel1::-webkit-scrollbar-thumb {
    background: var(--hojayfa-border1);
    border-radius: 4px;
}

.hojayfa-preview-carousel1::-webkit-scrollbar-thumb:hover {
    background: var(--hojayfa-primary1);
}

.hojayfa-preview-item1 {
    flex: 0 0 auto;
    width: 150px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.hojayfa-preview-item1:hover {
    transform: scale(1.05);
}

.hojayfa-preview-item1.hojayfa-active1 {
    outline: 3px solid var(--hojayfa-primary1);
    border-radius: var(--hojayfa-radius-md1);
    box-shadow: var(--hojayfa-shadow-red1);
}

.hojayfa-preview-thumbnail1 {
    width: 150px;
    height: 150px;
    border-radius: var(--hojayfa-radius-md1);
    overflow: hidden;
    background: var(--hojayfa-bg-input1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--hojayfa-space-xs1);
    border: 2px solid var(--hojayfa-border1);
}

.hojayfa-preview-thumbnail1 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hojayfa-preview-name1 {
    font-size: 0.75rem;
    color: var(--hojayfa-text-highlight1);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hojayfa-remove-preview1 {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--hojayfa-danger1);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
    font-weight: bold;
}

.hojayfa-preview-item1:hover .hojayfa-remove-preview1 {
    opacity: 1;
}

.hojayfa-remove-preview1:hover {
    transform: scale(1.1);
    background: var(--hojayfa-primary-dark1);
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA BULK CONTROLS
   ═══════════════════════════════════════════════════════════ */

.hojayfa-bulk-controls1 {
    background: var(--hojayfa-bg-card1);
    border-radius: var(--hojayfa-radius-lg1);
    padding: var(--hojayfa-space-lg1);
    margin-bottom: var(--hojayfa-space-xl1);
    box-shadow: var(--hojayfa-shadow-md1);
    border: 1px solid var(--hojayfa-border1);
    display: none;
}

.hojayfa-bulk-controls1.hojayfa-visible1 {
    display: block;
}

.hojayfa-bulk-header1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--hojayfa-space-lg1);
    flex-wrap: wrap;
    gap: var(--hojayfa-space-md1);
}

.hojayfa-bulk-header1 h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hojayfa-text-primary1);
}

.hojayfa-bulk-header1 h3 .hojayfa-icon1 {
    color: var(--hojayfa-primary1);
}

.hojayfa-presets1 {
    display: flex;
    gap: var(--hojayfa-space-sm1);
    flex-wrap: wrap;
}

.hojayfa-preset-btn1 {
    padding: var(--hojayfa-space-sm1) var(--hojayfa-space-md1);
    border: 1px solid var(--hojayfa-border1);
    background: var(--hojayfa-bg-input1);
    color: var(--hojayfa-text-secondary1);
    border-radius: var(--hojayfa-radius-md1);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.hojayfa-preset-btn1:hover {
    border-color: var(--hojayfa-primary1);
    color: var(--hojayfa-primary1);
    background: var(--hojayfa-bg-hover1);
}

.hojayfa-preset-btn1.hojayfa-active1 {
    background: var(--hojayfa-primary1);
    color: white;
    border-color: var(--hojayfa-primary1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.hojayfa-bulk-settings1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--hojayfa-space-md1);
    margin-bottom: var(--hojayfa-space-lg1);
}

.hojayfa-bulk-actions1 {
    display: flex;
    gap: var(--hojayfa-space-md1);
    flex-wrap: wrap;
}

/* Hojayfa Button System */
.hojayfa-btn1 {
    padding: var(--hojayfa-space-sm1) var(--hojayfa-space-lg1);
    border-radius: var(--hojayfa-radius-md1);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: var(--hojayfa-space-sm1);
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hojayfa-btn-primary1 {
    background: var(--hojayfa-primary1);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.hojayfa-btn-primary1:hover {
    background: var(--hojayfa-primary-dark1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.hojayfa-btn-success1 {
    background: var(--hojayfa-primary1);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.hojayfa-btn-success1:hover {
    background: var(--hojayfa-primary-dark1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.hojayfa-btn-secondary1 {
    background: var(--hojayfa-bg-input1);
    color: var(--hojayfa-text-primary1);
    border: 1px solid var(--hojayfa-border1);
}

.hojayfa-btn-secondary1:hover {
    background: var(--hojayfa-bg-hover1);
    border-color: var(--hojayfa-primary1);
    color: var(--hojayfa-primary1);
}

.hojayfa-btn1:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.hojayfa-btn1:active:not(:disabled) {
    transform: translateY(0) !important;
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA IMAGE DETAILS
   ═══════════════════════════════════════════════════════════ */

.hojayfa-image-details1 {
    background: var(--hojayfa-bg-card1);
    border-radius: var(--hojayfa-radius-lg1);
    padding: var(--hojayfa-space-lg1);
    margin-bottom: var(--hojayfa-space-xl1);
    box-shadow: var(--hojayfa-shadow-md1);
    border: 1px solid var(--hojayfa-border1);
    display: none;
}

.hojayfa-image-details1.hojayfa-visible1 {
    display: block;
}

.hojayfa-details-header1 {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--hojayfa-space-lg1);
    gap: var(--hojayfa-space-md1);
    padding-bottom: var(--hojayfa-space-md1);
    border-bottom: 2px solid var(--hojayfa-border1);
}

.hojayfa-details-info1 h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hojayfa-text-highlight1);
    margin-bottom: var(--hojayfa-space-xs1);
    word-break: break-word;
    text-shadow: 0 2px 5px rgba(251, 191, 36, 0.3);
}

.hojayfa-details-meta1 {
    display: flex;
    gap: var(--hojayfa-space-lg1);
    font-size: 0.875rem;
    color: var(--hojayfa-text-secondary1);
    flex-wrap: wrap;
}

.hojayfa-details-meta1 span {
    background: var(--hojayfa-bg-input1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--hojayfa-radius-sm1);
    border: 1px solid var(--hojayfa-border1);
}

.hojayfa-details-content1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hojayfa-space-xl1);
}

@media (max-width: 768px) {
    .hojayfa-details-content1 {
        grid-template-columns: 1fr;
    }
}

.hojayfa-details-preview1 {
    position: relative;
}

.hojayfa-large-preview1 {
    width: 100%;
    height: 400px;
    border-radius: var(--hojayfa-radius-md1);
    overflow: hidden;
    background: var(--hojayfa-bg-input1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--hojayfa-border1);
}

.hojayfa-large-preview1 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hojayfa-loading-overlay1 {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--hojayfa-space-md1);
    border-radius: var(--hojayfa-radius-md1);
}

.hojayfa-size-comparison1 {
    margin-top: var(--hojayfa-space-md1);
    padding: var(--hojayfa-space-md1);
    background: var(--hojayfa-bg-input1);
    border-radius: var(--hojayfa-radius-md1);
    border: 1px solid var(--hojayfa-border1);
}

.hojayfa-size-row1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--hojayfa-space-xs1);
    font-size: 0.875rem;
    color: var(--hojayfa-text-secondary1);
}

.hojayfa-size-row1:last-child {
    margin-bottom: 0;
    padding-top: var(--hojayfa-space-sm1);
    border-top: 1px solid var(--hojayfa-border1);
    font-weight: 600;
    color: var(--hojayfa-text-primary1);
}

.hojayfa-savings1 {
    color: var(--hojayfa-primary1);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.hojayfa-details-controls1 {
    display: flex;
    flex-direction: column;
    gap: var(--hojayfa-space-lg1);
}

.hojayfa-control-group1 {
    display: flex;
    flex-direction: column;
    gap: var(--hojayfa-space-xs1);
}

.hojayfa-control-group1 label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hojayfa-text-primary1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hojayfa-control-value1 {
    color: var(--hojayfa-primary1);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.hojayfa-control-group1 input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--hojayfa-bg-input1);
    outline: none;
    -webkit-appearance: none;
    border: 1px solid var(--hojayfa-border1);
}

.hojayfa-control-group1 input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hojayfa-primary1);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.hojayfa-control-group1 input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hojayfa-primary1);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.hojayfa-control-group1 select,
.hojayfa-control-group1 input[type="number"] {
    width: 100%;
    padding: var(--hojayfa-space-sm1);
    border: 1px solid var(--hojayfa-border1);
    border-radius: var(--hojayfa-radius-md1);
    font-size: 0.9375rem;
    background: var(--hojayfa-bg-input1);
    color: var(--hojayfa-text-primary1);
    transition: all 0.2s;
}

.hojayfa-control-group1 select:focus,
.hojayfa-control-group1 input[type="number"]:focus {
    outline: none;
    border-color: var(--hojayfa-primary1);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.hojayfa-control-actions1 {
    display: flex;
    gap: var(--hojayfa-space-sm1);
    padding-top: var(--hojayfa-space-md1);
    border-top: 1px solid var(--hojayfa-border1);
}

.hojayfa-control-actions1 .hojayfa-btn1 {
    flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA ALL IMAGES LIST
   ═══════════════════════════════════════════════════════════ */

.hojayfa-all-images-section1 {
    display: none;
}

.hojayfa-all-images-section1.hojayfa-visible1 {
    display: block;
}

.hojayfa-section-header1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--hojayfa-space-lg1);
}

.hojayfa-section-header1 h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hojayfa-text-primary1);
}

.hojayfa-section-header1 h3 .hojayfa-icon1 {
    color: var(--hojayfa-primary1);
}

.hojayfa-image-grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--hojayfa-space-md1);
}

@media (max-width: 640px) {
    .hojayfa-image-grid1 {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

.hojayfa-grid-item1 {
    background: var(--hojayfa-bg-card1);
    border-radius: var(--hojayfa-radius-md1);
    padding: var(--hojayfa-space-sm1);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--hojayfa-shadow-sm1);
    border: 1px solid var(--hojayfa-border1);
}

.hojayfa-grid-item1:hover {
    transform: translateY(-4px);
    box-shadow: var(--hojayfa-shadow-lg1);
    border-color: var(--hojayfa-primary1);
}

.hojayfa-grid-item1.hojayfa-active1 {
    outline: 3px solid var(--hojayfa-primary1);
    box-shadow: var(--hojayfa-shadow-red1);
}

.hojayfa-grid-thumbnail1 {
    width: 100%;
    height: 150px;
    border-radius: var(--hojayfa-radius-sm1);
    overflow: hidden;
    background: var(--hojayfa-bg-input1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--hojayfa-space-sm1);
    position: relative;
    border: 1px solid var(--hojayfa-border1);
}

.hojayfa-grid-thumbnail1 img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hojayfa-status-badge1 {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--hojayfa-primary1);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: var(--hojayfa-radius-sm1);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hojayfa-status-badge1.hojayfa-pending1 {
    background: var(--hojayfa-warning1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.hojayfa-grid-info1 {
    text-align: center;
}

.hojayfa-grid-name1 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hojayfa-text-highlight1);
    margin-bottom: var(--hojayfa-space-xs1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hojayfa-grid-size1 {
    font-size: 0.75rem;
    color: var(--hojayfa-text-secondary1);
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA LOADING SPINNER
   ═══════════════════════════════════════════════════════════ */

.hojayfa-spinner1 {
    width: 50px;
    height: 50px;
    border: 4px solid var(--hojayfa-border1);
    border-top-color: var(--hojayfa-primary1);
    border-radius: 50%;
    animation: hojayfaSpin1 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

@keyframes hojayfaSpin1 {
    to { transform: rotate(360deg); }
}

.hojayfa-progress-text1 {
    font-size: 1rem;
    color: var(--hojayfa-text-highlight1);
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(251, 191, 36, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA PREVIEW MODAL
   ═══════════════════════════════════════════════════════════ */

.hojayfa-modal1 {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--hojayfa-space-lg1);
}

.hojayfa-modal1.hojayfa-active1 {
    display: flex;
}

.hojayfa-modal-content1 {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.hojayfa-modal-content1 img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--hojayfa-radius-md1);
    box-shadow: 0 10px 50px rgba(220, 38, 38, 0.3);
}

.hojayfa-modal-close1 {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--hojayfa-primary1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
    font-weight: bold;
}

.hojayfa-modal-close1:hover {
    background: var(--hojayfa-primary-dark1);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA TIPS & HELPER TEXT
   ═══════════════════════════════════════════════════════════ */

.hojayfa-tip-card1 {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: var(--hojayfa-space-lg1);
    border-radius: var(--hojayfa-radius-lg1);
    margin-bottom: var(--hojayfa-space-xl1);
    display: flex;
    align-items: start;
    gap: var(--hojayfa-space-md1);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hojayfa-tip-icon1 {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.hojayfa-tip-content1 h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--hojayfa-space-xs1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hojayfa-tip-content1 p {
    font-size: 0.9375rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hojayfa-tip-content1 .hojayfa-highlight-tip1 {
    color: var(--hojayfa-text-highlight1);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */

.hojayfa-sr-only1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hojayfa-compressor1 *:focus-visible {
    outline: 2px solid var(--hojayfa-primary1);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .hojayfa-container1 {
        padding: var(--hojayfa-space-md1);
    }
    
    .hojayfa-upload-area1 {
        padding: var(--hojayfa-space-lg1);
    }
    
    .hojayfa-tool-header1 {
        padding-top: var(--hojayfa-space-md1);
        margin-bottom: var(--hojayfa-space-lg1);
    }
    
    .hojayfa-bulk-header1 {
        flex-direction: column;
        align-items: start;
    }
    
    .hojayfa-bulk-actions1 {
        width: 100%;
    }
    
    .hojayfa-bulk-actions1 .hojayfa-btn1 {
        flex: 1;
        font-size: 0.875rem;
        padding: var(--hojayfa-space-sm1) var(--hojayfa-space-md1);
    }
    
    .hojayfa-preview-item1 {
        width: 120px;
    }
    
    .hojayfa-preview-thumbnail1 {
        width: 120px;
        height: 120px;
    }
    
    .hojayfa-preview-name1 {
        max-width: 120px;
    }
    
    .hojayfa-large-preview1 {
        height: 300px;
    }
}

/* ═══════════════════════════════════════════════════════════
   HOJAYFA ANIMATION EFFECTS
   ═══════════════════════════════════════════════════════════ */

.hojayfa-glow-text1 {
    text-shadow: 0 0 10px currentColor;
}

@keyframes hojayfaPulseRed1 {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
    }
}

.hojayfa-btn-primary1:not(:disabled),
.hojayfa-btn-success1:not(:disabled) {
    animation: hojayfaPulseRed1 2s ease-in-out infinite;
}