/* ---------------------------------- */
/* IMAGE CONVERTER SPECIFIC STYLES    */
/* ---------------------------------- */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --border: #e2e8f0;
    --font: 'Inter', sans-serif;
}
/* REMOVED .settings-and-preview display: flex; */

.settings-panel {
    /* Set to full width for stacking */
    width: 100%;
    flex: unset; 
    min-width: unset; 
    
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
}

.format-select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.preview-area {
    /* Set to full width and centered */
    width: 100%;
    flex: none; 
    
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f7f7f7;
    min-height: 250px;
    
    /* Centering the content */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;    /* Center vertically */
    
    overflow: hidden; /* Contains the image */
}

/* Style for the quality slider */
#jpegQualityControl label, #jpegQualityControl span {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#jpegQuality {
    width: 100%;
}

/*footer description styling */
/* --- SEO Description Section Styling --- */

.tool-seo-section {
    max-width: 800px; /* Constrains the width for better readability */
    margin: 40px auto; /* Centers the content and provides vertical spacing */
    padding: 20px;
    border-top: 2px solid #eee; /* Subtle separator from the tool above */
    line-height: 1.6; /* Improves readability of body text */
    font-family: Arial, sans-serif; /* Use a common, readable font */
    color: #333; /* Darker text for contrast */
}

/* Styling for the main section title (H2) */
.tool-seo-section .section-title {
    font-size: 24px;
    color: #007bff; /* Use your brand color here (e.g., a blue) */
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

/* Styling for the subsections titles (H3) */
.tool-seo-section .subsection-title {
    font-size: 20px;
    color: #555;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Styling for regular paragraphs */
.tool-seo-section p {
    margin-bottom: 15px;
}

/* Styling for the feature list */
.tool-seo-section .feature-list {
    list-style: disc; /* Use standard bullet points */
    padding-left: 20px;
    margin-left: 0;
}

.tool-seo-section .feature-list li {
    margin-bottom: 8px;
}

/* Optional: Highlight the security note for emphasis */
.tool-seo-section .security-note {
    padding: 15px;
    background-color: #f7f9fc; /* Light background to make it stand out */
    border-left: 4px solid #007bff;
    margin-top: 20px;
    font-style: italic;
}

/* Ensure strong tags stand out */
.tool-seo-section strong {
    color: #1a1a1a;
}

/* Footer */
.main-footer { background: var(--dark); color: var(--white); padding: 40px 5%; text-align: center; }
.footer-link { color: var(--primary); text-decoration: none; font-weight: 600; display: block; margin-bottom: 10px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.social-links a { color: white; border: 1px solid rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-links a:hover { background: var(--primary); border-color: var(--primary); }

/* Mobile */
@media (max-width: 850px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; border-bottom: 1px solid var(--border); }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; padding: 20px; gap: 10px; }
    .form-group { flex-direction: column; }
}