* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-red: #ef4444;
    --accent-red-hover: #dc2626;
    --border-color: #333333;
}

.hojayfa-ir-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hojayfa-ir-header1 {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    color: #f70c3f;
}

.hojayfa-ir-header1 h1 {
    font-size: 22px;
    font-weight: 700;
    color: #f70c3f;
    margin-bottom: 0.5rem;
}

.hojayfa-ir-header1 p {
    color: var(--text-secondary);
    font-size: 14px;
}

.hojayfa-ir-upload-section {
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.hojayfa-ir-upload-area {
    border: 3px dashed rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hojayfa-ir-upload-area.dragover {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.02);
}

.hojayfa-ir-upload-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

.hojayfa-ir-upload-text h3 {
    font-size: 18px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hojayfa-ir-upload-text p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 1.5rem;
}

.hojayfa-ir-browse-btn {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.hojayfa-ir-browse-btn:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.hojayfa-ir-file-input {
    display: none;
}

hojayfa-ir-settings-section {
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.hojayfa-ir-settings-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.hojayfa-ir-format-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hojayfa-ir-format-option {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hojayfa-ir-format-option:hover {
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.hojayfa-ir-format-option.active {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.hojayfa-ir-format-option input[type="radio"] {
    display: none;
}

.hojayfa-ir-format-label {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
}

.hojayfa-ir-quality-control {
    margin-top: 1.5rem;
}

.hojayfa-ir-quality-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hojayfa-ir-quality-value {
    color: var(--accent-red);
    font-weight: 600;
}

.hojayfa-ir-quality-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.hojayfa-ir-quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-red);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hojayfa-ir-quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.hojayfa-ir-quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-red);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.hojayfa-ir-action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hojayfa-ir-btn {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.hojayfa-ir-btn:hover:not(:disabled) {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.hojayfa-ir-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hojayfa-ir-btn-secondary {
    background: var(--bg-primary);
    border: 2px solid var(--accent-red);
}

.hojayfa-ir-preview-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.hojayfa-ir-preview-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.hojayfa-ir-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.hojayfa-ir-preview-item {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid var(--border-color);
}

.hojayfa-ir-preview-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.hojayfa-ir-preview-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.hojayfa-ir-preview-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

hojayfa-ir-files-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
}

.hojayfa-ir-files-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.hojayfa-ir-file-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.hojayfa-ir-file-info {
    flex: 1;
    min-width: 200px;
}

.hojayfa-ir-file-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.hojayfa-ir-file-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.hojayfa-ir-file-progress {
    flex: 1;
    min-width: 200px;
}

.hojayfa-ir-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.hojayfa-ir-progress-fill {
    height: 100%;
    background: var(--accent-red);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.hojayfa-ir-progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.hojayfa-ir-file-actions {
    display: flex;
    gap: 0.5rem;
}

.hojayfa-ir-file-btn {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hojayfa-ir-file-btn:hover:not(:disabled) {
    background: var(--accent-red-hover);
}

.hojayfa-ir-file-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hojayfa-ir-file-btn-delete {
    background: transparent;
    border: 2px solid var(--accent-red);
}

.hojayfa-ir-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.hojayfa-ir-empty-icon {
    font-size: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hojayfa-ir-zip-progress {
    background: var(--bg-primary);
    border: 2px solid var(--accent-red);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.hojayfa-ir-zip-text {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hojayfa-ir-spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hojayfa-ir-download-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--accent-red);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--text-primary);
}

.hojayfa-ir-download-notice strong {
    color: var(--accent-red);
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .hojayfa-ir-upload-section,
    .hojayfa-ir-settings-section,
    .hojayfa-ir-preview-section,
    .hojayfa-ir-files-section {
        padding: 1.5rem 1rem;
    }

    .hojayfa-ir-upload-area {
        padding: 2rem 1rem;
    }

    .hojayfa-ir-header1 h1 {
        font-size: 18px;
    }

    .hojayfa-ir-format-selector {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .hojayfa-ir-action-buttons {
        flex-direction: column;
    }

    .hojayfa-ir-btn {
        min-width: 100%;
    }

    .hojayfa-ir-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .hojayfa-ir-file-item {
        flex-direction: column;
        align-items: stretch;
    }

    .hojayfa-ir-file-actions {
        width: 100%;
    }

    .hojayfa-ir-file-btn {
        flex: 1;
    }
}