/* Image Compressor Tool Styles */
.ict-container {
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ict-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #000000 0%, #1a001f 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid #222222;
}

.ict-hero h1 {
    color: #8C1EE6;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.ict-hero p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 30px;
}

.ict-compressor-interface {
    background: #111111;
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #222222;
    margin-bottom: 40px;
}

/* UPLOAD AREA - FIXED */
.ict-upload-area {
    border: 3px dashed #8C1EE6;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(140, 30, 230, 0.05);
    position: relative;
}

.ict-upload-area:hover {
    background: rgba(140, 30, 230, 0.1);
    border-color: #9d3aed;
    transform: translateY(-2px);
}

.ict-upload-area:active {
    transform: translateY(0);
}

.ict-drag-over {
    background: rgba(140, 30, 230, 0.2) !important;
    border-color: #9d3aed !important;
}

/* File input - SIMPLIFIED */
.ict-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ict-upload-content i {
    font-size: 4rem;
    color: #8C1EE6;
    margin-bottom: 20px;
}

.ict-upload-content h3 {
    color: #8C1EE6;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.ict-controls {
    margin: 30px 0;
}

.ict-quality-slider {
    width: 100%;
    margin: 20px 0;
}

.ict-quality-slider input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #222222;
    outline: none;
    -webkit-appearance: none;
}

.ict-quality-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8C1EE6;
    cursor: pointer;
}

.ict-preview-section {
    display: none;
    margin: 40px 0;
}

.ict-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.ict-preview-box {
    background: #0A0A0A;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #222222;
    text-align: center;
}

.ict-preview-box h4 {
    color: #8C1EE6;
    margin-bottom: 15px;
}

.ict-preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ict-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.ict-stat-card {
    background: #0A0A0A;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #222222;
}

.ict-stat-card h4 {
    color: #8C1EE6;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.ict-features {
    margin: 60px 0;
}

.ict-section-title {
    color: #8C1EE6;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.ict-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ict-feature-card {
    background: #111111;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #222222;
    text-align: center;
    transition: transform 0.3s ease;
}

.ict-feature-card:hover {
    transform: translateY(-5px);
    border-color: #8C1EE6;
}

.ict-feature-icon {
    font-size: 3rem;
    color: #8C1EE6;
    margin-bottom: 20px;
}

.ict-feature-card h3 {
    color: #8C1EE6;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.ict-benefits {
    background: #0A0A0A;
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 0;
    border: 1px solid #222222;
}

.ict-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ict-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ict-benefit-icon {
    color: #8C1EE6;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ict-benefit-content h4 {
    color: #8C1EE6;
    margin-bottom: 10px;
}

.ict-cta {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #000000 0%, #1a001f 100%);
    border-radius: 20px;
    border: 1px solid #222222;
}

.ict-cta h2 {
    color: #8C1EE6;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.ict-btn {
    background: #8C1EE6;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.ict-btn:hover {
    background: #9d3aed;
    transform: translateY(-2px);
}

.ict-btn:disabled {
    background: #555555;
    cursor: not-allowed;
    transform: none;
}

.ict-btn-secondary {
    background: transparent;
    border: 2px solid #8C1EE6;
    color: #8C1EE6;
}

/* Loading animation */
.ict-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.ict-spinner {
    border: 4px solid #222222;
    border-top: 4px solid #8C1EE6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message styles */
.ict-message {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
}

.ict-error {
    background: #ff4444;
    color: white;
}

.ict-success {
    background: #00ff00;
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ict-hero h1 {
        font-size: 2.5rem;
    }
    
    .ict-preview-container {
        grid-template-columns: 1fr;
    }
    
    .ict-compressor-interface {
        padding: 20px;
    }
    
    .ict-features-grid {
        grid-template-columns: 1fr;
    }
}