/* Main Container */
.icwp-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

/* Card Style */
.icwp-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.icwp-header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 25px;
    text-align: center;
}

.icwp-header i {
    font-size: 50px;
    margin-bottom: 15px;
}

.icwp-header h2 {
    margin: 10px 0 5px;
    font-size: 24px;
}

.icwp-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Upload Area */
.icwp-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.icwp-upload-area.icwp-highlight {
    border-color: #6e8efb;
    background-color: rgba(110, 142, 251, 0.05);
}

.icwp-upload-area i {
    font-size: 48px;
    color: #6e8efb;
    margin-bottom: 15px;
}

.icwp-upload-area p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

.icwp-upload-area span {
    display: block;
    margin: 10px 0;
    color: #999;
    font-size: 14px;
}

.icwp-upload-area input[type="file"] {
    display: none;
}

/* Button Styles */
.icwp-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.icwp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

.icwp-btn i {
    margin-right: 8px;
}

/* Settings Section */
.icwp-settings {
    padding: 0 20px 20px;
}

.icwp-form-group {
    margin-bottom: 25px;
}

.icwp-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

.icwp-form-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
}

.icwp-form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #6e8efb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.icwp-form-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #5a7df5;
}

/* Preview Section */
.icwp-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.icwp-original, .icwp-compressed {
    flex: 1;
    min-width: 250px;
}

.icwp-preview h4 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.icwp-img-container {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icwp-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.icwp-file-info {
    font-size: 14px;
    color: #666;
}

.icwp-file-info p {
    margin: 5px 0;
}

.icwp-file-info i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
    color: #6e8efb;
}

/* Result Section */
.icwp-result {
    text-align: center;
    margin-top: 20px;
}

.icwp-savings {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #4a6cf7;
}

.icwp-savings i {
    margin-right: 10px;
    font-size: 18px;
}

/* Loading Animation */
.icwp-loading {
    text-align: center;
    padding: 40px 20px;
}

.icwp-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6e8efb;
    border-radius: 50%;
    animation: icwp-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes icwp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.icwp-loading p {
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .icwp-preview {
        flex-direction: column;
    }
    
    .icwp-header {
        padding: 20px 15px;
    }
    
    .icwp-header h2 {
        font-size: 20px;
    }
    
    .icwp-upload-area {
        padding: 30px 15px;
        margin: 15px;
    }
}