:root {
    --primary-color: #00BFA5; /* Teal/Green */
    --primary-hover: #00a794;
    --secondary-color: #4A4A4A; /* Dark Gray for text */
    --light-gray: #f4f7f6;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    --primary-hover-light: #e0f2f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--secondary-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

.container-header {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 { font-size: 3rem; color: var(--dark-gray); }
h2 { font-size: 2.2rem; color: var(--dark-gray); text-align: center;}
h3 { font-size: 1.5rem; color: var(--dark-gray); }

p {
    margin-bottom: 15px;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}


.btn {
    display: inline-block;
    padding: 10px 25px;
    height: fit-content;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-svg {
    margin-right: 10px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-gray);
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}
header nav ul li a:hover {
    color: var(--primary-color);
}

.auth-buttons a {
    margin-left: 15px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}


/* Hero Section */
.hero {
    background-color: var(--light-gray);
    padding-top: 3rem;
    text-align: center;

}

#hero-space {
    height: 100%;
    width: 10rem;
}

.hero-left {
    max-width: 45rem;
}


#hero-space {
    height: 100%;
    width: 10rem;
}

.hero-left {
    max-width: 45rem;
}

.hidden {
    display: none !important;
}

.title-main {
    font-size: 2.8rem;
}

.testimonial-section {
    display: flex;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    animation: testimonial-scroll 30s linear infinite;
}

@keyframes testimonial-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.testimonial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 500px;
    margin-right: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Add this new rule to emphasize "Images To Text" */
.title-main span {
    background-color: var(--primary-color);
    transform: rotate(-1.5deg);
    display: inline-block;
    color: white;
    padding: 0 10px;
    transition: 200ms ease-in-out;
}

.title-main span:hover {
    transform: rotate(1.5deg);
}



/* Showcase Section */
.showcase {
    padding: 60px 0;
    background-color: var(--light-gray);
}
.showcase h2 {
    margin-bottom: 40px;
}

.image-comparison {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.image-container {
    flex: 1;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}
.image-container image {
    width: 100%;
    height: auto;
    display: block;
}
.image-label {
    text-align: center;
    padding: 10px;
    width: 100%;
    font-weight: 500;
    background-color: rgba(0,0,0,0.03);
    margin-bottom: 0; /* Override default p margin */
}

.processed-image, .original-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#extraction-description {
    margin-bottom: 1rem;
    margin: 1rem 1rem;
    width: 90%;
}

.arrow-separator {
    font-size: 3rem;
    color: var(--primary-color);
    padding: 0 20px;
}


.upload-tool {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: flex-start; /* Align items to the top */
    min-height: 400px;
    box-sizing: border-box;
}

@keyframes size {
    0% {
        width: 100%;
    }
    100% {
        width: 50%;
    }
}

.file-input-area {
    border: 2px dashed var(--medium-gray);
    padding: 30px;
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.file-input-area:hover {
    border-color: var(--primary-color);
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 100%;
    height: 100%;
    color: var(--secondary-color);
}
.file-upload-label i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.file-upload-label span {
    font-weight: 500;
}

#image-upload {
    display: none; /* Hide the default input */
}

.file-info {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
    height: fit-content;
}

#view-editor-btn {
    width: fit-content;
}

.controls-area {
    margin-bottom: 50px;
}
.controls-area label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
#sensitivity {
    width: 100%;
    cursor: pointer;
}

.status-messages {
    margin-top: 20px;
    text-align: left;
    /* display: none; */
}
#upload-status {
    font-weight: 500;
    margin-bottom: 10px;
}
.progress-bar-container {
    width: 100%;
    background-color: var(--medium-gray);
    border-radius: var(--border-radius);
    height: 20px;
    overflow: hidden;
}
.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: 0.8rem;
}

.upload-controls {
    margin-top: 1rem;
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0;
    background-color: var(--white);
}
.pricing-section h2 {
    margin-bottom: 50px;
}

.pricing-tiers {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* For responsiveness */
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}

.spinner {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: radial-gradient(farthest-side, var(--primary-color) 94%,#0000) top/6.4px 6.4px no-repeat,
          conic-gradient(#0000 30%, var(--primary-color));
   -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 6.4px),#000 0);
   mask: radial-gradient(farthest-side,#0000 calc(100% - 6.4px),#000 0);
   animation: spinner 0.8s infinite linear;
}

@keyframes spinner {
   100% {
      transform: rotate(1turn);
   }
}

.tier {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    width: 300px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* For popular badge */
}
.tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.space-tier {
    width: 100%;
    height: 5rem;
}

.tier.popular {
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tier h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}
.tier .credits {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.tier .credits strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
}
.tier .price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-gray);
}
.tier .price del {
    font-size: 1rem;
    color: #999;
    margin-right: 5px;
}
.tier .savings-info {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 20px; /* Ensure consistent spacing */
}

.tier ul {
    text-align: left;
    margin: 20px 0;
    min-height: 100px; /* To align buttons */
}
.tier ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.tier ul li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.tier .btn {
    width: 100%;
    margin-top: auto; /* Pushes button to bottom */
}

.credit-conversion {
    text-align: center;
    font-style: italic;
    color: #666;
}

.credit-conversion-top {
    margin-top: 2.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: #BDC3C7; /* Light gray for text on dark background */
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-left, .footer-right {
    flex: 1;
    min-width: 250px; /* For wrapping */
}

.footer-right {
    width: fit-content;
}

.footer-left .logo-area {
    margin-bottom: 15px;
}
.product-name-footer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.footer-left p {
    font-size: 0.95rem;
}

.footer-right h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-middle {
    height: 100%;
    flex-grow: 1;
}

/* .footer-middle h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;

    
} */

/* > * {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px); 
} */

.footer-right ul li {
    margin-bottom: 10px;
}
.footer-right ul li a {
    color: #BDC3C7;
    transition: color 0.3s ease;
}
.footer-right ul li a:hover {
    color: var(--primary-color);
}

.hidden-extra-nav {
    text-align: center;
    display: flex;
    justify-content: center;
    display: none; /* Hide initially, show on mobile */
}

.copyright {
    text-align: center;
    border-top: 1px solid #4A4A4A;
    padding-top: 20px;
    font-size: 0.9rem;
}
.copyright p {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    text-align: left;
    gap: 50px;
    margin-top: 20px;
    width: fit-content;
}
.footer-email {
    display: flex;
    justify-content: left;
    align-items: center;

}

.fit-content {
    width: fit-content;
}


@media (max-width: 940px) {
    .product-name-footer {
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .image-comparison {
        flex-direction: column;
        align-items: center;
    }
    .image-container {
        width: 100%;
        max-width: 500px; /* Or adjust as needed */
    }

    .arrow-separator-rotate {
        transform: rotate(90deg);
    }
}

@media (max-width: 900px) {
    .header-flex nav {
        display: none; /* Hide nav for mobile, implement JS toggle if needed */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .header-flex nav.active {
        display: flex;
    }

    .hidden-extra-nav {
        display: flex;
    }

    .header-flex nav ul {
        flex-direction: column;
        width: 100%;
    }
    .header-flex nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .auth-buttons {
        display: none; /* Simplification for mobile, could be in menu */
    }


}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }


    .pricing-tiers {
        flex-direction: column;
        align-items: center;
    }
    .tier {
        width: 100%;
        max-width: 350px; /* Control max width on mobile */
    }
    .tier ul {
        min-height: auto; /* Remove fixed height on mobile */
    }

    .footer-right {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-right h4 {
        margin: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-left .logo-area {
        justify-content: center;
    }
    .footer-right ul {
        align-items: center;
    }
}

/* Contact Us Section */
.contact-section {
    padding: 60px 0;
    background-color: var(--light-gray); /* Alternates with light-gray sections */
}

.contact-section h2 {
    margin-bottom: 20px; /* Default is 15px, giving a bit more space */
}

.contact-section .section-subtitle {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px auto; /* Increased bottom margin */
    font-size: 1.05rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

.contact-form {
    max-width: 750px; /* Slightly wider form */
    margin: 0 auto;
    background-color: var(--white); /* Form background */
    padding: 35px 40px; /* More padding */
    border-radius: var(--border-radius);
    /* box-shadow: var(--box-shadow); */
    border: 1px solid var(--medium-gray); /* Subtle border */
}

.contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for name and email */
    gap: 25px; /* Gap between grid items */
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 25px; /* Spacing between form groups */
}
.contact-form .form-grid .form-group {
    margin-bottom: 0; /* Reset margin for items in grid, rely on gap */
}


.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--secondary-color);
    background-color: #fcfcfc; /* Slightly off-white input background */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.15); /* Softer focus shadow */
    background-color: var(--white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px; /* Taller textarea */
}

.contact-form .contact-submit-button { /* Using the specific class for the button */
    width: 100%;
    padding: 14px 30px; /* Adjust padding if btn-large is too big/small */
    font-size: 1.05rem; /* Slightly larger font for submit */
    margin-top: 10px; /* Space above the button */
}

/* Responsive adjustments for the contact form */
@media (max-width: 768px) {
    .contact-form {
        padding: 30px 25px;
    }
    .contact-form .form-grid {
        grid-template-columns: 1fr; /* Stack Name and Email on smaller screens */
        gap: 0; /* Remove gap as they are stacked */
    }
    .contact-form .form-grid .form-group {
         margin-bottom: 25px; /* Add margin back when stacked */
    }
    .contact-form .form-grid .form-group:last-child {
         margin-bottom: 0; /* Remove margin for the last item in grid if stacked */
    }
}

@media (max-width: 480px) {
    .contact-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .contact-form {
        padding: 25px 20px;
    }
    .contact-form label {
        font-size: 0.9rem;
    }
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .contact-form .contact-submit-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .upload-tool {
        padding: 20px;
    }
    .file-input-area {
        padding: 20px;
    }
}

/* Output Types Section - COMPACT VERSION */
.output-types-section {
    padding: 50px 0; /* Reduced top/bottom padding */
    background-color: var(--white);
}

.output-types-section h2 {
    margin-bottom: 15px; /* Reduced margin */
}

.output-types-section .section-subtitle {
    text-align: center;
    max-width: 700px; /* Slightly reduced max-width */
    margin: 0 auto 40px auto; /* Reduced bottom margin */
    font-size: 1rem; /* Reduced font size */
    color: var(--secondary-color);
    line-height: 1.6; /* Slightly reduced line height */
}

.output-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly smaller min width for cards */
    gap: 20px; /* Reduced gap */
}

.output-type-card {
    background-color: var(--white);
    padding: 25px 20px; /* Reduced padding */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* Slightly smaller shadow */
    display: flex;
    flex-direction: column;
    border: 1px solid var(--medium-gray);
    transition: transform 0.25s ease, box-shadow 0.25s ease; /* Slightly faster transition */
}

.output-type-card:hover {
    transform: translateY(-4px); /* Reduced hover lift */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Reduced hover shadow */
}

.output-type-icon {
    font-size: 2.2rem; /* Reduced icon size */
    color: var(--primary-color);
    margin-bottom: 15px; /* Reduced margin */
    text-align: center;
    height: 35px; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.output-type-card h3 {
    font-size: 1.25rem; /* Reduced card title size */
    font-weight: 600;
    margin-bottom: 10px; /* Reduced margin */
    color: var(--dark-gray);
    text-align: center;
}

.output-type-card p {
    font-size: 0.92rem; /* Reduced paragraph text size */
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px; /* Reduced margin */
    flex-grow: 1;
    text-align: left;
}

/*
  Place these updated/new rules within your existing "Output Types Section - COMPACT VERSION" CSS,
  replacing the previous definitions for .output-example, .output-example h4, and .output-example pre.
*/

.output-example {
    margin-top: auto;
    background-color: #f8f9fa;
    border-radius: calc(var(--border-radius) - 3px);
    padding: 15px; /* Inner padding for the box */
    border: 1px solid #e9ecef;
    height: 230px; /* <<< MODIFIED: Fixed height for all example boxes */
    display: flex; /* <<< NEW: Enable flex properties for children */
    flex-direction: column; /* <<< NEW: Stack h4 and pre vertically */
    overflow: hidden; /* <<< NEW: Ensures padding is respected by scrolling children */
}



.output-example h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px; /* Space between title and pre */
    flex-shrink: 0; /* <<< NEW: Prevent h4 from shrinking if pre content is large */
}

.output-example pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 10px; /* Padding inside the pre tag */
    border-radius: calc(var(--border-radius) - 5px); /* Slightly smaller radius for inner element */
    font-size: 0.75rem;
    line-height: 1.45;
    flex-grow: 1; /* <<< NEW: Allows pre to take up remaining vertical space */
    overflow-y: auto; /* <<< NEW: Add vertical scrollbar if content overflows */
    overflow-x: auto; /* Retain horizontal scroll for long lines */
    min-height: 0; /* <<< NEW: Important for flex children to shrink/grow correctly */
    white-space: pre; /* Changed from pre-wrap to pre for better scroll with overflow-x */
    /* word-break: break-all; -- Typically not needed with white-space: pre and overflow-x */
}

/* Ensure the code tag itself doesn't add unexpected margins/paddings */
.output-example pre code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    display: block; /* Helps ensure padding on pre is visually consistent */
}

.output-example pre code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

.output-example .prompt-text {
    background-color: #e6f7ff;
    padding: 8px 12px; /* Reduced padding */
    border-radius: 4px;
    font-style: italic;
    color: #005288;
    border: 1px solid #b3e0ff;
    margin-bottom: 12px; /* Reduced margin */
    font-size: 0.8rem; /* Reduced font size */
}

/* Responsive adjustments for Output Types Section (Compact) */
@media (max-width: 992px) {
    .output-types-section {
        padding: 40px 0; /* Further reduced padding */
    }
    .output-types-section .section-subtitle {
        margin-bottom: 30px; /* Further reduced margin */
        font-size: 0.95rem; /* Further reduced font size */
    }
}

@media (max-width: 768px) {
    .output-type-card {
        padding: 20px 15px; /* Further reduced padding */
    }
     .output-types-section .section-subtitle {
        font-size: 0.92rem;
    }
    .output-type-card h3 {
        font-size: 1.15rem; /* Further reduced card title */
    }
    .output-type-card p {
        font-size: 0.9rem; /* Further reduced paragraph */
        margin-bottom: 15px;
    }

    .footer-email {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .output-types-section {
        padding: 30px 0;
    }
     .output-example {
        padding: 10px;
    }
    .output-example pre {
        font-size: 0.82rem;
        padding: 10px;
    }
}


/* Toggle */
.toggle-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 22px;
    background-color: #ccc;
    border-radius: 22px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
}

.toggle-circle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
    background-color: var(--primary-color);
}

.toggle-switch.active .toggle-circle {
    transform: translateX(22px);
}

.toggle-label {
    color: #333;
    user-select: none;
}

#json-output-api {
    padding: 0.5rem;
    border-radius: 10px;
    background-color: #f8f9fa;
    min-width: 15rem;
    resize: none;
    height: 100%;
    transition: 200ms ease-in-out;
    overflow-x: auto;
    white-space: pre; /* Prevents wrapping, enables horizontal scroll */
}

#json-output-api:hover {
    border: var(--primary-color) 1px solid;
}

#json-output-api:focus {
    outline: none;
}


.jobDescription {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    outline: none;
}

.jobDescription:focus {
    border-color: var(--primary-color);
    background-color: #e9f7f5;
}

.edit-fields {
    margin-top: 0.5rem;
    margin-bottom: 15px;
}

/* Styles for the new process-settings panel */
.process-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Spacing between groups */
    padding: 20px;
    background-color: var(--white); /* Or var(--light-gray) to match preview bg */
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
    /* box-shadow: var(--box-shadow); /* Optional: if it needs to pop more */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1 1 0;
    flex-shrink: 0; /* Prevent shrinking */
    height: 100%; /* Take full height of parent */
    justify-content: center; /* Vertically center content within the panel */
}

.form-group-settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Space between label and input/button */
}

.settings-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.settings-label small {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--secondary-color);
    display: block; /* Makes small text appear on new line or wrap naturally */
    margin-top: 2px;
}

.edit-fields-btn {
    width: 100%;
    text-align: center;
    padding-top: 12px !important; /* Ensure padding overrides default button if needed */
    padding-bottom: 12px !important;
}
.edit-fields-btn i {
    margin-right: 8px;
}

/* Toggle Group specific styling */
.toggle-group {
    display: flex;
    flex-direction: row; /* Align label and toggle switch horizontally */
    justify-content: space-between;
    align-items: center;
    padding: 8px 5px; /* Add some padding for visual separation */
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    /* border-top: 1px solid var(--medium-gray); */
    /* border-bottom: 1px solid var(--medium-gray); */
}

.toggle-group .settings-label {
    margin-bottom: 0; /* Remove bottom margin as it's now side-by-side */
    flex-grow: 1;
    margin-right: 10px;
    font-size: 0.85rem; /* Slightly smaller for this context */
}
.toggle-group .settings-label small {
    font-size: 0.75rem;
}


.toggle-switch {
    flex-shrink: 0; /* Prevent toggle from shrinking */
}

.settings-actions {
    margin-top: 10px; /* Space above the main button */
    /* margin-top: auto; /* Pushes the button to the bottom if panel has extra space and not using justify-content:center */
}

.settings-actions .btn-primary {
    width: 100%;
}
.settings-actions .btn-primary i {
    margin-right: 8px;
}

/* Adjustments for the parent .upload-tool */
.upload-tool {
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Space between preview and settings panel */
    min-height: 400px; /* Allow content to define height but have a minimum */
    /* padding: 20px; /* Consider adjusting if current 1.5rem is too much/little */
}

/* Ensure the image preview takes up space appropriately */
#image-preview {
    flex-shrink: 0; /* Prevent image preview from shrinking too much */
    /* height: 100%; /* Removed to let content define it better with min-height on parent */
    align-self: stretch; /* Make it stretch to the height of upload-tool if desired */
    display: flex; /* Ensure inner img is centered if using justify-content */
}
#image-preview img{
    object-fit: contain; /* Ensure image scales nicely within its bounds */
}


/* Input field consistency */
.jobDescription {
    background-color: var(--white); /* Consistent input background */
    border: 1px solid var(--medium-gray); /* Ensure border is visible */
}
.jobDescription:focus {
    border-color: var(--primary-color);
    background-color: var(--primary-hover-light); /* Consistent focus */
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.1); /* Softer focus shadow like contact form */
}

/* Remove inline style from original #process-settings if it was:
   style="display: flex; flex-direction: column; justify-content: center; align-items: center; margin-left: 0.5rem;"
   The new .process-settings-panel class handles this.
*/

/* If you have a .create-modal-label class, its styles might need to be merged
   or this new .settings-label will take precedence for these elements. */

/* Spinner positioning if used within the panel */
.process-settings-panel .center {
    width: auto; /* Override full width if not needed */
    margin-top: 5px;
    margin-bottom: 5px;
}




/* Add these new/modified styles to your existing CSS file.
   You can place them towards the end, or group them logically. */

/* --- Responsive Upload Tool --- */

/* Base styles for upload-tool and its children when active (after image selection) */
/* Ensure .upload-tool itself is flexible if it's inside another container */

/* Ensure the fixed height from original .upload-tool is changed to min-height or removed */
.upload-tool {
    height: auto; /* Override previous fixed height */
    min-height: 400px; /* Retain or adjust min-height as needed */
}


/* When file input area is primary content */
.upload-tool .file-upload-label {
    /* This is the direct child of upload-tool that contains file-input-area */
    width: 100%; /* Ensures it tries to take full width if it's the only main item shown initially */
    /* JS hides this element (fileInputArea.style.display = "none"; where fileInputArea is .file-upload-label) */
}
/* .file-input-area already has good base styles for taking up space within its label */


/* Styles for #image-preview (remove inline styles from HTML) */
#image-preview {
    /* display: none; /* JS will toggle this via style.display or .hidden class */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    background-color: var(--light-gray);
    
    flex: 1 1 40%; /* Grow, shrink, basis 40% */
    max-width: 30rem; /* Max width on large screens */
    min-width: 200px; /* Minimum shrink size */
    align-self: stretch; /* Stretches to match height of parent/tallest sibling in cross axis */
    box-sizing: border-box;
    /* margin-left: 0.5rem; /* This was in your HTML, removed now by CSS */
}

/* Styles for #preview-img (remove inline styles from HTML) */
#preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 2px); /* Inner radius */
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

/* .process-settings-panel already has good base styles */
.process-settings-panel {
    flex: 1 1 30%; /* Grow, shrink, basis 30% */
    min-width: 260px; /* Min width for controls to be usable */
    height: auto;
    /* max-width: 400px; /* Optional: cap its width on very large screens */
    align-self: stretch;
    box-sizing: border-box;
    /* padding: 20px; /* Already set */
    /* gap: 18px; /* Already set */
}

#json-output-api {
    flex: 1 1 30%; /* Grow, shrink, basis 30% */
    min-width: 220px;
    align-self: stretch;
    resize: none; /* Allow user to resize vertically */
    min-height: 150px; /* Ensure it's visible */
    height: auto;
    box-sizing: border-box;
    /* padding: 0.5rem; /* Already set */
    /* border-radius: 10px; /* Already set */
}


/* Media Query for Tablets and Smaller Desktops */
@media (max-width: 1024px) {
    .upload-tool {
        flex-direction: column;
        align-items: center; /* Center items when stacked */
        padding: 1.25rem;
        gap: 15px; /* Adjust gap for stacked items */
    }

    #image-preview,
    .process-settings-panel,
    #json-output-api {
        flex-basis: auto; /* Reset flex-basis for stacked layout */
        width: 100%;    /* Take full width of the centered column */
        max-width: 600px; /* But not excessively wide on tablets */
        align-self: auto; /* Reset align-self */
    }

    #image-preview {
        min-height: 250px; /* Ensure space for the image */
        max-height: 400px; /* Control max image display height */
        order: 1; /* Optional: if you want to reorder when stacked */
    }

    .process-settings-panel {
        order: 2; /* Optional: reordering */
        /* Height will be content-based */
    }

    #json-output-api {
        order: 3; /* Optional: reordering */
        height: 200px; /* Specific height for textarea */
    }
}

/* Media Query for Mobile Phones */
@media (max-width: 767px) {
    .upload-tool {
        padding: 1rem; /* Further reduce padding */
        gap: 20px; /* Keep a decent gap for readability */
    }

    /* File Input Area specific adjustments for mobile (when it's visible) */
    .file-input-area {
        padding: 25px 15px; /* Adjust padding */
        min-height: 200px; /* Ensure it's a decent tap target */
    }
    .file-input-area i.fa-cloud-upload-alt { /* Be more specific for the icon */
        font-size: 2.8rem; /* Slightly smaller icon */
        margin-bottom: 10px;
    }
    .file-input-area #drag-and-drop { /* Target the text span */
        font-size: 0.95rem;
        line-height: 1.4;
    }
    .file-input-area .file-info { /* Supports: ... Max 50MB */
        font-size: 0.75rem;
        margin-top: 8px;
    }

    /* When image preview and settings are active (stacked): */
    #image-preview,
    .process-settings-panel,
    #json-output-api {
        max-width: 100%; /* Full width on mobile, overriding 600px from tablet */
    }

    #image-preview {
        padding: 0.3rem;
        min-height: 200px;
        max-height: 300px;
    }

    .process-settings-panel {
        padding: 15px; /* Reduced padding */
    }
    .process-settings-panel .settings-label {
        font-size: 0.85rem;
    }
    .process-settings-panel .settings-label small {
        font-size: 0.7rem;
    }
    .process-settings-panel .jobDescription,
    .process-settings-panel .edit-fields-btn,
    .process-settings-panel .settings-actions .btn-primary {
        font-size: 0.9rem;
    }
     .process-settings-panel .edit-fields-btn,
     .process-settings-panel .settings-actions .btn-primary {
        padding-top: 10px !important; /* Ensure override if needed */
        padding-bottom: 10px !important;
    }
    .process-settings-panel .toggle-group {
        padding: 6px 8px; /* Adjust padding for toggle group */
    }
    .process-settings-panel .toggle-group .settings-label {
        font-size: 0.8rem; /* Adjust toggle label size */
    }
    .process-settings-panel .toggle-group .settings-label small {
        font-size: 0.7rem; /* Adjust toggle small label size */
    }
    .process-settings-panel .toggle-switch { /* Adjust toggle switch size if needed */
        transform: scale(0.9); /* Example: slightly smaller toggle */
    }


    #json-output-api {
        height: 150px;
        font-size: 0.85rem; /* Smaller font for textarea content */
        padding: 0.4rem;
    }
}

/* Merge with existing @media (max-width: 480px) or ensure no conflicts */
@media (max-width: 480px) {
    /* .upload-tool padding is already 1rem from 767px query, which is fine */
    /* .file-input-area padding is already 25px 15px from 767px query */

    .file-input-area i.fa-cloud-upload-alt {
        font-size: 2.5rem;
    }
    .file-input-area #drag-and-drop {
        font-size: 0.9rem;
    }
    .file-input-area .file-info {
        font-size: 0.7rem;
    }

    #image-preview {
        min-height: 180px;
        max-height: 250px;
    }

    .process-settings-panel {
        padding: 10px;
        gap: 12px; /* Reduce gap between items in settings panel */
    }
    .process-settings-panel .settings-label {
        font-size: 0.8rem;
    }
     .process-settings-panel .jobDescription,
     .process-settings-panel .edit-fields-btn,
     .process-settings-panel .settings-actions .btn-primary {
        font-size: 0.85rem;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}

/* --- End of Responsive Upload Tool --- */

/* --- START: Sale Banner --- */
.sale-banner {
    background-color: var(--primary-hover);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
}

.sale-banner p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.sale-banner .promo-code {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 5px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.promo-code-active {
    background-color: rgba(70, 255, 126, 0.25) !important;
}

@media (max-width: 480px) {
    .sale-banner p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}
/* --- END: Sale Banner --- */


.peaks {
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 960/100;
}


.peaks-up {
    background-image: var(--top-wave);
}

.peaks-down {
    background-image: var(--bottom-wave);
}


.credits-legal {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}