/* Upload Container - Fixed for proper containment */
.ixl-hero-one-upload .upload-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    position: relative;
    overflow: visible; /* Changed to visible to allow natural expansion */
    display: flex;
    flex-direction: column;
    max-height: none; /* Allow container to grow */
    margin-bottom: 0; /* Reset margin */
}

/* Upload Zone */
.ixl-hero-one-upload .upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgb(0, 0, 0);
    flex-shrink: 0; /* Prevent shrinking */
}

.ixl-hero-one-upload .upload-zone:hover,
.ixl-hero-one-upload .upload-zone.dragover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.959) !important;
}

.ixl-hero-one-upload .upload-icon {
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
    opacity: 0.9;
}

.ixl-hero-one-upload .upload-zone h4 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.ixl-hero-one-upload .upload-zone p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.ixl-hero-one-upload .browse-text {
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.ixl-hero-one-upload .file-types {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.ixl-hero-one-upload .file-types span {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

/* Options Bar */
.ixl-hero-one-upload .options-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 15px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.ixl-hero-one-upload .format-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ixl-hero-one-upload .format-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #fff;
}

.ixl-hero-one-upload .format-option label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.ixl-hero-one-upload .quality-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ixl-hero-one-upload .quality-option label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.ixl-hero-one-upload .quality-option select {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    outline: none;
}

.ixl-hero-one-upload .quality-option select option {
    background: #222;
    color: #fff;
}

.ixl-hero-one-upload .quality-option select:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* File List */
.ixl-hero-one-upload .file-list {
    margin: 15px 0;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 241, 241, 0.986) rgb(29, 29, 29);
    flex-shrink: 0;
}

.ixl-hero-one-upload .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 6px;
    animation: slideIn 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.ixl-hero-one-upload .file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.ixl-hero-one-upload .file-name {
    font-size: 13px;
    color: #fff;
    font-weight: 400;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ixl-hero-one-upload .file-size {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.ixl-hero-one-upload .file-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.ixl-hero-one-upload .file-remove:hover {
    color: #fff;
}

/* Action Buttons */
.ixl-hero-one-upload .action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
    flex-shrink: 0;
}

.ixl-hero-one-upload .compress-btn,
.ixl-hero-one-upload .clear-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ixl-hero-one-upload .compress-btn {
    background: #000000;
    color: #ffffff;
}

.ixl-hero-one-upload .compress-btn:hover:not(:disabled) {
    background: #0111ff !important;
    transform: translateY(-2px);
}

.ixl-hero-one-upload .compress-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.ixl-hero-one-upload .clear-btn {
    background: rgb(0, 0, 0) !important;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ixl-hero-one-upload .clear-btn:hover:not(:disabled) {
    background: rgba(1, 26, 253, 0.993);
    color: #fff;
}

.ixl-hero-one-upload .clear-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Results Area - Fixed for proper containment */
.ixl-hero-one-upload .results-area {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgb(0, 0, 0);
    position: relative;
    width: 100%;
    overflow: visible;
    max-height: none; /* Allow natural expansion */
    flex-shrink: 0; /* Prevent shrinking */
    /* Ensure it stays within parent */
    clear: both;
    display: block;
}

.ixl-hero-one-upload .stats-summary {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    /* Ensure it doesn't overflow */
    flex-wrap: wrap;
}

.ixl-hero-one-upload .stat-item {
    text-align: center;
    min-width: 70px;
}

.ixl-hero-one-upload .stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ixl-hero-one-upload .stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* Scrollable results container - Fixed height with scroll */
.ixl-hero-one-upload .results-scroll {
    max-height: 400px !important;
    overflow-y: auto !important;
    padding-right: 8px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 241, 241, 0.986) rgb(29, 29, 29);
    /* Ensure scrollable area doesn't expand beyond max-height */
    min-height: 0;
}

/* Results list */
.ixl-hero-one-upload .results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ixl-hero-one-upload .result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgb(0, 0, 0);
    border: 1px solid rgb(65, 65, 65);
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.ixl-hero-one-upload .result-item:hover {
    border-color: rgb(58, 58, 58);
    background: rgba(0, 0, 0, 0.8);
}

.ixl-hero-one-upload .result-info {
    flex: 1;
    min-width: 0;
}

.ixl-hero-one-upload .result-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.ixl-hero-one-upload .result-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
}

.ixl-hero-one-upload .result-stats .savings {
    color: #4CAF50;
    font-weight: 500;
}

.ixl-hero-one-upload .result-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ixl-hero-one-upload .download-btn,
.ixl-hero-one-upload .copy-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ixl-hero-one-upload .download-btn:hover,
.ixl-hero-one-upload .copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* ZIP download section */
.ixl-hero-one-upload .zip-section {
    margin: 15px 0 10px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.ixl-hero-one-upload .zip-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ixl-hero-one-upload .zip-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Failed files message */
.ixl-hero-one-upload .failed-files {
    color: #ff6b6b;
    font-size: 12px;
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Scrollbar styling for results */
.ixl-hero-one-upload .results-scroll::-webkit-scrollbar {
    width: 4px;
}

.ixl-hero-one-upload .results-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.ixl-hero-one-upload .results-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.ixl-hero-one-upload .results-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scrollbar for file list */
.ixl-hero-one-upload .file-list::-webkit-scrollbar {
    width: 4px;
}

.ixl-hero-one-upload .file-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.ixl-hero-one-upload .file-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Firefox scrollbar support */
.ixl-hero-one-upload .results-scroll,
.ixl-hero-one-upload .file-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 241, 241, 0.986) rgb(29, 29, 29);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Box sizing for all elements */
.ixl-hero-one-upload * {
    box-sizing: border-box;
}

/* Clear any floating issues */
.ixl-hero-one-upload::after {
    content: '';
    display: table;
    clear: both;
}

/* Ensure the hero section container properly constrains content */
.ixl-hero-one-upload {
    width: 100%;
    position: relative;
    overflow: visible; /* Allow natural expansion */
    /* Add bottom margin to prevent overlap with next section */
    margin-bottom: 0;
}

/* Fix for the parent section to prevent overlap */
.ixl-hero-one {
    position: relative;
    overflow: visible;
    /* Ensure proper spacing */
    padding-bottom: 0;
}

/* Fix for the row to maintain proper flow */
.row {
    position: relative;
    overflow: visible;
}

/* Fix for the column containing the uploader */
.col-12.col-lg-10.col-xl-6 {
    position: relative;
    overflow: visible;
    /* Add bottom margin to create space when content expands */
    margin-bottom: 0;
}

/* Add spacing to the feature section to prevent overlap */
.ixl-feaure-wrap {
    position: relative;
    clear: both; /* Force new line */
    margin-top: 0; /* Reset margin */
    /* Add top padding to ensure separation */
    padding-top: 60px;
}

/* Ensure the feature section starts after the hero content */
.ixl-feaure-wrap.pt-120 {
    padding-top: 120px;
    clear: both;
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ixl-hero-one-upload .upload-container {
        padding: 20px;
    }
    
    .ixl-hero-one-upload .options-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .ixl-hero-one-upload .stats-summary {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ixl-hero-one-upload .stat-item {
        flex: 1 1 auto;
        min-width: 70px;
    }
    
    .ixl-hero-one-upload .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ixl-hero-one-upload .result-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .ixl-hero-one-upload .result-name {
        max-width: 100%;
    }
    
    .ixl-hero-one-upload .results-scroll {
        max-height: 150px;
    }
    
    /* Adjust feature section padding on mobile */
    .ixl-feaure-wrap.pt-120 {
        padding-top: 80px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .ixl-hero-one-upload .upload-container {
        padding: 15px;
    }
    
    .ixl-hero-one-upload .upload-zone {
        padding: 30px 15px;
    }
    
    .ixl-hero-one-upload .upload-zone h4 {
        font-size: 18px;
    }
    
    .ixl-hero-one-upload .file-types {
        flex-wrap: wrap;
    }
    
    .ixl-hero-one-upload .stats-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .ixl-hero-one-upload .stat-item {
        width: 100%;
    }
    
    .ixl-hero-one-upload .result-stats {
        flex-direction: column;
        gap: 4px;
    }
    
    .ixl-hero-one-upload .result-actions {
        justify-content: flex-start;
    }
    
    .ixl-hero-one-upload .results-scroll {
        max-height: 120px;
    }
    
    .ixl-feaure-wrap.pt-120 {
        padding-top: 60px;
    }
}


.btn-style-4 {
    position: relative;
    min-width: 160px;
}

.spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner i {
    font-size: 16px;
}

.btn-style-4:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#formStatus {
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 5px;
}

#formStatus.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formStatus.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#formStatus.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}