/* ---------------------------------- */
/* IMAGE SIZE RESIZER 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;
}
.settings-panel {
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    margin-top: 20px;
}

.preview-area {
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f7f7f7;
    min-height: 300px;
    display: flex;
    justify-content: center; 
    align-items: center;    
    overflow: hidden; 
}

/* ------------------ STAGE 1: FORMAT BUTTONS ------------------ */

.format-options h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.format-buttons-group {
    display: flex;
    gap: 10px;
}

.format-button {
    flex: 1;
    padding: 12px 10px;
    background-color: #f0f0f0;
    color: #333;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.format-button:hover {
    background-color: #e0e0e0;
}

.format-button.active {
    background-color: #007bff; /* Primary color active state */
    color: white;
    border-color: #007bff;
}

/* Quality slider adjustment */
#jpegQualityControl {
    display: none; /* Hidden by default until JPEG is selected */
    padding-top: 15px;
}


/* ------------------ STAGE 2: RESIZE INPUTS LAYOUT ------------------ */

.resizer-inputs-group {
    display: flex; 
    gap: 15px;    
    align-items: center; 
    margin-bottom: 10px;
}

.dimension-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff; 
    padding-top: 20px; 
}

.resizer-input-column {
    flex: 1; 
}

.resizer-input-column label {
    display: block; 
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem; 
    color: #555;
}

.resizer-input-column input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; 
}

/* Back Button Style */
.back-button {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px 10px;
    transition: color 0.2s;
}
.back-button:hover {
    color: #007bff;
}

.settings-panel hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* ---------------------------------- */
/* GLOBAL TOOL BOX WIDTH ADJUSTMENT   */
/* ---------------------------------- */

.tool-box-container {
    /* Set a maximum width for the tool content */
    max-width: 760px; /* Recommended width for a good reading experience on medium to large screens */
    width: 95%;      /* Ensure it's still responsive on smaller screens */
    margin-left: auto; /* Center the container */
    margin-right: auto; /* Center the container */
    padding: 20px;
    
    /* Ensure existing tool styles are maintained or added here */
}

/* Add or ensure the section containing the tool is centered too */
.resizer-section {
    padding: 40px 20px;
    text-align: center; /* Center the H1/H2/P elements above the box */
}


/* ---------------------------------- */
/* SEO DESCRIPTION STYLING            */
/* ---------------------------------- */

.tool-seo-section {
    /* Set max width and center it for readability on large screens */
    max-width: 900px; 
    margin: 40px auto 60px auto; 
    padding: 20px;
    border-top: 2px solid #007bff; /* Use your main brand color for a separator */
    line-height: 1.7; /* Improves readability of body text */
    font-family: 'Inter', sans-serif; /* Use your site's primary font */
    color: #333; /* Darker text for contrast */
    text-align: left; /* Ensure text is left-aligned within the section */
}

/* Styling for the main section title (H2) */
.tool-seo-section .section-title {
    font-size: 1.8rem; /* Large and impactful */
    color: #007bff; /* Main brand color */
    margin-bottom: 15px;
    padding-bottom: 5px;
    font-weight: 700;
}

/* Styling for the subsections titles (H3) */
.tool-seo-section .subsection-title {
    font-size: 1.4rem;
    color: #555;
    margin-top: 35px; /* More space above H3s to separate sections */
    margin-bottom: 15px;
    font-weight: 600;
}

/* Styling for regular paragraphs */
.tool-seo-section p {
    margin-bottom: 15px;
}

/* Styling for the feature list (UL) */
.tool-seo-section .feature-list {
    list-style-type: none; /* Remove default bullets */
    padding-left: 0;
    margin-left: 0;
}

.tool-seo-section .feature-list li {
    padding-left: 1.5em; /* Space for custom bullet */
    margin-bottom: 10px;
    position: relative;
}

/* Custom bullet point using Font Awesome (assuming you have it linked) */
.tool-seo-section .feature-list li::before {
    content: "\f00c"; /* Checkmark icon */
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    color: #28a745; /* Green checkmark */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9rem;
}

/* Special styling for nested lists (e.g., JPEG/PNG options) */
.tool-seo-section .feature-list li ul {
    list-style: circle;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}
/* 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; }
}