body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    
    color: #333;
}



.container {
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

h3 {
    color: #2c3e50;
}


.upload-area {
    border: 2px dashed #3498db;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f8fafc;
}

.upload-area:hover {
    background-color: #f0f7ff;
    border-color: #2980b9;
}

.upload-area.dragover {
    background-color: #e1f0fa;
    border-color: #2980b9;
}

.upload-area i {
    font-size: 50px;
    color: #3498db;
    margin-bottom: 15px;
}

#fileInput {
    display: none;
}

.controls {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #efefef;
    border-radius: 5px;
    outline: none;
    border: 1px solid #616161;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.preview {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.image-box {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-box img {
    max-width: 100%;
    max-height: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: left;
}

.stats p {
    margin: 8px 0;
    font-size: 14px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.quality-value, .width-value {
    font-weight: bold;
    color: #3498db;
    display: inline-block;
    width: 40px;
    text-align: center;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .preview {
        flex-direction: column;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
}


.image-progress-container {
    position: relative;
    display: inline-block;
    width: 100%;
   /* min-height: 400px;*/
    background: #c9c9c9;
    border-radius: 20px 20px 0 0;
    padding: 10px;
    box-sizing: border-box;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #27ae60;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #27ae60;
    margin-left: 10px;
    font-weight: normal;
}

/* Update the width value display */
.width-value {
    display: inline-block;
    width: 30px;
    text-align: center;
}

/* Update the format selector */
#format {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}


/* Benefits Section Styles */
.benefits {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.benefits h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.benefits h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 1rem auto 0;
    border-radius: 2px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid #3498db;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.benefit-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    background: #e3f2fd;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.benefit-card:hover i {
    background: #3498db;
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.benefit-card p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1.05rem;
}

.benefit-card strong {
    color: #2980b9;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .benefits {
        padding: 3rem 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .benefits h2 {
        font-size: 1.8rem;
    }
    
    .benefit-card i {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2rem;
    }
}


/* Help Text Styles */
.help-text {
    display: block;
    font-size: 0.85rem;
    color: #6c757d; /* Subtle gray */
    margin-top: 0.5rem;
    line-height: 1.4;
    font-style: italic;
    position: relative;
    padding-left: 1.25rem;
    transition: color 0.2s ease;
}


/* Contextual variations */
.control-group:hover .help-text {
    color: #495057; /* Darker on hover */
}

.warning .help-text {
    color: #e67e22; /* Orange for warnings */
}

.error .help-text {
    color: #e74c3c; /* Red for errors */
}

.success .help-text {
    color: #2ecc71; /* Green for success */
}

.guide-content ul{
    margin: 10px 0px 10px 50px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .help-text {
        font-size: 0.8rem;
        padding-left: 1rem;
    }

}


header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

header h1 {
    color: white;
    font-size: 32px;

}

header p {
    color: white;
    margin: 10px 0 0;
    line-height: 24px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #2c3e50;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

footer a {
    color: #1489f7;
    text-decoration: none;
}

footer p {
    color: #fff;
    margin: 0;
}

footer a:hover {
    text-decoration: underline;
}

.toolWrapper {
    border: 1px solid #8b8b8b;
    padding: 15px;
    border-radius: 15px;
    margin: 0 0 60px 0;
    background: #f7f7f7;
}