﻿/* Basic styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    line-height: 1.6;
}
/*.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Dropzone styling */
.dropzonef {
    border: 2px dashed #3498db;
    border-radius: 10px;
    background-color: #f9f9f9;
    padding: 60px 40px !important;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 30px !important;
    cursor: pointer;
}
.dropzonef:hover {
    background-color: #eef7ff;
    border-color: #2980b9;
}
.dropzonef-hover {
    background-color: #eef7ff;
    border-color: #2980b9;
}
.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='17 8 12 3 7 8'%3E%3C/polyline%3E%3Cline x1='12' y1='3' x2='12' y2='15'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.message-text {
    font-size: 18px;
    color: #555;
}
.message-text strong {
    display: block;
    margin-bottom: 5px;
}

/* Quality settings */
.options {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.options label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}
.quality-description {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Slider styling */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #e74c3c, #f1c40f, #2ecc71);
    outline: none;
    opacity: 0.85;
    transition: opacity 0.2s, box-shadow 0.3s;
    margin: 10px 0;
}
.slider:hover {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Progress bar */
.progress-container {
    margin-top: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    height: 25px;
    position: relative;
    overflow: hidden;
    display: none;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
}
.progress-status {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    color: #555;
    display: none;
}

/* Results container */
#results {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}
.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.result-info {
    flex-grow: 1;
}
.result-info h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}
.result-info p {
    margin: 0;
    color: #555;
}
.result-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.download-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}
.download-btn:hover {
    background-color: #27ae60;
    color: white;
    text-decoration: none;
}
.close-btn {
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
    line-height: 1;
    padding-bottom: 4px; /* Adjust slightly to account for typography baseline */
    text-align: center; /* Ensure text is centered */
}
.close-btn:hover {
    background-color: #e74c3c;
    color: white;
}

/* Archive Download */
#archive-download-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin: 15px 0;
    background-color: #ecf7fe;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #4a6cf7;
}
.archive-icon {
    flex: 0 0 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6cf7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8v13H3V8'%3E%3C/path%3E%3Cpath d='M1 3h22v5H1z'%3E%3C/path%3E%3Cpath d='M10 12h4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 15px;
}
.archive-info {
    flex-grow: 1;
}
.archive-info h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}
.archive-info p {
    margin: 0;
    color: #555;
}
.archive-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.archive-download-btn {
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}
.archive-download-btn:hover {
    background-color: #3a5ce5;
    color: white;
    text-decoration: none;
}
.close-archive-btn {
    width: 30px;
    height: 30px;
    background-color: #e0e0e0;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
    line-height: 1;
}
.close-archive-btn:hover {
    background-color: #e74c3c;
    color: white;
}

/* How to Use Section */
#how-to-use {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
#how-to-use h2 {
    margin-bottom: 15px;
    color: #333;
}

/* Related Tools */
.related-tools {
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 10px;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
}
.related-tools h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.tool-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333;
}
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.tool-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.tool-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}
.tool-desc {
    color: #666;
    font-size: 14px;
}

/* FAQ section */
.info-box {
    margin: 40px auto;
    max-width: 100%;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.info-box-header {
    background-color: #73DDFD;
    color: #141d31;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}
.info-box-content {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.faq-question {
    padding: 18px 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}
.faq-question:hover {
    background-color: #f1f3f5;
}
.faq-toggle {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 16px;
    transition: transform 0.3s;
}
.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: white;
}
.faq-item.active .faq-question {
    background-color: #f1f3f5;
}
.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 20px;
    background: #f1f1f1;
    border-radius: 8px;
}

/* Make percentage stand out in green */
.result-info p strong {
    color: #27ae60;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: #e8f9f0;
    display: inline-block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .dropzonef {
        padding: 30px 20px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    #archive-download-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .archive-icon {
        margin-bottom: 10px;
    }
    
    .archive-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Improved touchability for mobile */
@media (max-width: 480px) {
    .download-btn, 
    .archive-download-btn {
        padding: 12px 15px;
        width: 100%;
        text-align: center;
    }
    
    .close-btn,
    .close-archive-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 15px;
    }
    
    .faq-toggle {
        right: 15px;
    }
    
    .faq-answer {
        padding: 15px;
    }
}

/* Accent bar base style - positioned at bottom */
.accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Tricolor bar styles */
.accent-bar.tricolor-bgr {
  background: linear-gradient(to right, 
    #3498db 0%, #3498db 33.33%, 
    #2ecc71 33.33%, #2ecc71 66.66%, 
    #e74c3c 66.66%, #e74c3c 100%);
  height: 6px;
}

.accent-bar.tricolor-gry {
  background: linear-gradient(to right, 
    #2ecc71 0%, #2ecc71 33.33%, 
    #e74c3c 33.33%, #e74c3c 66.66%, 
    #f1c40f 66.66%, #f1c40f 100%);
  height: 5px;
}

/* Monocolor bar styles */
.accent-bar.blue {
  background-color: #3498db; /* Blue */
  height: 6px;
}

.accent-bar.green {
  background-color: #2ecc71; /* Green */
  height: 5px;
}

.accent-bar.red {
  background-color: #e74c3c; /* Red */
  height: 6px;
}

.accent-bar.yellow {
  background-color: #f1c40f; /* Yellow */
  height: 6px;
}

/* Full width info container */
.info-container-full {
    width: 100%;
    padding: 30px 30px 38px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
    background-color: #ffffff;
    position: relative;
}
/* Improved bullet styling for lists */
.info-container-full ol,
.info-container-full ul {
    padding-left: 0;
    list-style-position: inside;
    margin: 15px 0;
}
/* Custom styling for ordered lists (How to Convert) */
.info-container-full ol {
    counter-reset: item;
    list-style-type: none;
}
.info-container-full ol li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 18px;
    counter-increment: item;
}
.info-container-full ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
	background: #2eb5cc;
  /*  background: linear-gradient(135deg, #3498db, #2ecc71);*/
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.info-container-full ol li:last-child {
    margin-bottom: 0;
}
/* Custom styling for unordered lists (JPG Quality Settings) */
.info-container-full ul {
    list-style-type: none;
}
.info-container-full ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}
.info-container-full ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: #f1c40f;
    border-radius: 3px;
  /*  transform: rotate(45deg);*/
}
/* Different colors for quality settings list */
.info-container-full ul li:nth-child(1):before {
    background-color: #2ecc71; /* Green for high quality */
}
.info-container-full ul li:nth-child(2):before {
    background-color: #3498db; /* Blue for good quality */
}
.info-container-full ul li:nth-child(3):before {
    background-color: #f1c40f; /* Yellow for medium quality */
}
.info-container-full ul li:nth-child(4):before {
    background-color: #e74c3c; /* Red for low quality */
}
/* Important notes list styling */
.info-container-full h3 + ul li:before {
    background-color: #9b59b6; /* Purple for important notes */
    border-radius: 50%; /* Round bullet for important notes */
}
/* Media query for responsive design */
@media screen and (max-width: 768px) {
    .info-container-full ol li {
        padding-left: 40px;
    }
    
    .info-container-full ol li:before {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .info-container-full ul li {
        padding-left: 22px;
    }
    
    .info-container-full ul li:before {
        width: 10px;
        height: 10px;
    }
}