/* General Styles */
body {
    padding-top: 50px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    /*background-color: #f9fafb;*/
    text-align: center;
    /* Ensures all direct child elements are centered */
    overflow-x: hidden;
}

/* Header Styles - Keeping your original header styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    overflow-x: hidden;
}

/* Header Container */
.header-container {
    width: 100%;
    max-width: 100%; /* was 93 */
    /* 1200px;*/
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    /* Only for the header */
    align-items: center;
}

.nav-cta-container {
    padding-right: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    /* Adjust spacing between nav and button */
}

.logo {
    font-size: 34px;
    padding-left: 30px;
    font-weight: bold;
    color: #333;
    font-family: 'Inter', sans-serif;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6f61;
}

.cta-button-disabled {
    background: #ff6f61;
    color: #fff;
    height: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    pointer-events: none; /* Disables click events */
    opacity: 0.6; /* Gives a visual disabled effect */
}

.cta-button {
    background: #ff6f61;
    color: #fff;
    height: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.cta-button:hover {
    background: #ff4a3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.2);
}

/* Main Content Container */
main .container {
    width: 90%;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Upload Section */
.upload-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    /*vertical or horizonal */
    gap: 2rem;
    margin: 5rem auto;
    width: 100%;
}


.upload-box:hover {
    /*border-color: #ff6f61;*/
    background: #fff;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
}

.upload-label h1 {
    font-size: 48px;
    color: #ff6f61;
    margin: 0;
    transition: transform 0.3s ease;
}

.upload-box:hover .upload-label h1 {
    transform: scale(1.4);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: none;
}

/* Progress Bar */
.progress-container {
    max-width: 600px;
    margin: 2rem auto;
    display: none;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0; /* Light gray for "empty" part */
    border-radius: 2px;
    overflow: hidden;
    width: 100%; /* Make sure the container takes full width */
}

.progress-bar #progress-fill {
    height: 100%;
    background: #ff6f61; /* Coral color for filled part */
    width: 0; /* Starts at 0% */
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.analyze-button {
    display: block;
    margin: 2rem auto;
    padding: 0.5rem 2rem;
    background: #ff6f61;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analyze-button:not(.has-images) {
    display: none;
}

.dropdown-toggle:not(.has-images) {
    display: none;
}

.analyze-button-disabled {
    display: block;
    margin: 2rem auto;
    padding: 0.6rem 2.5rem;
    background: #ff6f61;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: not-allowed; /* Shows a disabled cursor */
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    pointer-events: none; 
    opacity: 0.6; 
    text-decoration: none;
}

.reset-button {
    display: block;
    margin: 2rem auto;
    padding: 0.4rem 1.6rem;
    background: #ff6f61;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}


.analyze-button:hover {
    background: #ff4a3d;
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.2);
}

.analyze-button:active {
    transform: translateY(0);
}

/* New CSS for split button functionality */
.button-container {
    position: relative;
    display: inline-block;
    margin: 0rem auto;
}

.button-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

/* Override some analyze-button properties for the split button */
.button-group .analyze-button {
    margin: 0;
    border-radius: 8px 0 0 8px;
}

.dropdown-toggle {
    padding: 0 0.50rem;
    background: #ff6f61;
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}

.dropdown-toggle:hover {
    background: #ff4a3d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.arrow-icon {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 180px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
}

.dropdown-item {
    padding: 0.8rem 1rem;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 6px 6px;
}

.dropdown-item:hover {
    background-color: #f5f5f7;
    color: #ff6f61;
}

/* alert banner */
.alert {
    padding: 20px;
    background-color: rgb(81, 140, 188);
    color: white;
    margin-bottom: 15px;
  }
  
  /* The close button */
  .closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  /* When moving the mouse over the close button */
  .closebtn:hover {
    color: black;
  }


.status-message {
    position: absolute;
    top: -60px;
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(98, 167, 241);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.status-message.show {
    opacity: 1;
}



/* Result Section */
.result-section {
    max-width: 1200px; /*results grid max width*/
    margin: 2rem auto;
    padding: 2rem;
    /*    background: #fff; 
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.result-text {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 1.1rem;
}

footer {
   /* background-color: #f8f9fa; */
   background-color: #ffffff;
    width: 100%;
    padding: 1.5rem 0;
    color: #6b7280;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03);
}

.footer-container {
    opacity: 0.6;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin: 0 1rem;
    min-width: 100px;
}

.footer-section h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    font-size: 0.8rem;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section ul li a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-icons a {
    margin: 0 0.5rem;
    color: #6b7280;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.1rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto; 
        justify-content: center; 
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        gap: 0.25rem;
        text-align: center;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .upload-section {
        flex-direction: column;
        align-items: center;
    }

    .upload-box {
        width: 80%; /* !important;*/
        max-width: 340px;
    }

    nav ul {
        gap: 10px;
    }

    .nav-cta-container {
        display: none;
    }

    .logo {
        font-size: 1.7rem;
        padding-left: 20px;
    }

    .progress-container {
        max-width: 300px;
        margin: 2rem auto;
        display: none;
    }
}

/* Banner Section */
.banner {
    width: 100%;
    text-align: center;
   /* background: linear-gradient(0deg, #ff6f61, #ff6f61);
    color: white; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    color: #000;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 -2px 1px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    box-sizing: border-box;
}

.banner p {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

.banner h1 {
    font-size: 1.4rem; /* Larger font size for impact */
    margin: 35px;
    margin-bottom: 0px;
    font-weight: 700; /* Make the text bold */
    opacity: 1;
    transition: opacity 0.4s ease-in-out; /* Smooth opacity transition */
}

.banner h1:hover {
    opacity: 0.5; /* Slight fade effect on hover */
}


/* Hide the mobile menu completely on large screens */
.mobile-menu {
    display: none;
}


.hamburger {
    display: none;
    /* Hidden by default */
    font-size: 28px;
    cursor: pointer;
}

/* Hide the mobile menu completely on large screens */
.mobile-menu {
    display: none;
}

.hamburger {
    display: none;
    /* Hidden by default */
    font-size: 28px;
    cursor: pointer;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-cta-container {
        display: none;
        /* Hide nav and CTA on small screens */
    }

    .upload-box {
        height: 140px;
    }

    .camera-icon {
        display: block;
        margin: 0 auto 0.5rem;
        width: 48px;
        height: 48px;
        background: none;
        /* SVG camera icon encoded as background */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 13a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 28px;
        padding-right: 20px;
    }

    .banner h1 {
        font-size: 1.2rem;
    }

    .banner p {
        font-size: 0.9rem;
    }

    .upload-section {
        margin: 2rem auto;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        width: 100%;
        height: 100vh;
        z-index: 2010;
        padding: 20px;
        overflow-y: auto;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 20px 0 0 0;
    }

    .mobile-menu ul li {
        padding: 8px 0;
        text-align: left;
    }

    .mobile-menu ul li a {
        text-decoration: none;
        color: #333;
        display: block;
        padding: 12px 0;
        font-size: 18px;
    }

    .mobile-menu ul li a:hover {
        background: transparent;
        color: #ff6f61;
        border-radius: 0;
        padding: 12px 0;
    }

    .mobile-menu.show {
        display: block;
    }

    /* Add a close button for the full-screen menu */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
    }
}


/* Pricing Section */
.pricing {
    text-align: center;
    padding: 20px;
    padding-bottom: 50px;
    background: #f9f9f9;
    color: #333;
  /*  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.1); */
}

/* Heading */
.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #333;
}

/* Pricing Cards Container */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;
}


/* Individual Pricing Card */
.pricing-card {
    display: flex;
    flex-direction: column; /* This is the key addition */
    justify-content: center;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 280px;
    text-align: left;
    transition: transform 0.3s ease;
}

/* Price Styling */
.pricing-card .price {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6f61;
    margin: 20px 0;
}

/* Plan Features */
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-card ul li {
    margin: 10px 0;
}

.pricing-card li::before {
    content: "✓";
    color: #10b981;
    margin-right: 0.5rem;
}

.login-button {
    margin-top: auto;
    background: #ffffff;
    /*border: solid 2px #ff6f61; */
    border: solid 2px #000;
    color: #000000;
    padding: 6px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
/* CTA Button Styling */
.cta-button {
    margin-top: auto;
    background: #ff6f61;
    color: white; 
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center; /* Add this to center the text */
    display: inline-block; /* This helps with link styling */
}

.cta-button-disabled {
    margin-top: auto;
    background: #ff6f61;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #ff9478;
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 300px;
        margin-bottom: 30px;
    }
    
}

.camera-icon {
    display: block;
    margin: 0 auto 0.5rem;
    width: 64px;
    height: 64px;
    background: none;
    /* SVG camera icon encoded as background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.2' d='M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z'%3E%3C/path%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M15 13a3 3 0 11-6 0 3 3 0 016 0z'%3E%3C/path%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}


.upload-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3.5rem auto;
    width: 100%;
}

.upload-box {
    width: 80%;
    height: 380px; /*height of box */
    border: 2px solid #c7c6c6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    background-color: #f9fafb49; /*upload box background color */
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    /*border-color: rgb(255, 111, 97, 0.8); */
}

/*
@media (min-width: 1768px) {
    .upload-box {
        width: 60%;
    }
}*/


/* Ensure border remains hidden when has-images class is present */
.upload-box.has-images {
    border: none !important;
    width: 800px;
    height: 600px;

}

.upload-box:hover:not(.has-images) {
    /*border-color: #ff6f61;*/
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upload-label {
    text-align: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.upload-label h1 {
    font-size: 48px;
    color: #ff6f61;
    margin: 0;
    transition: transform 0.3s ease;
}

.upload-label p {
    margin-top: 10px;
    color: #666;
}

.upload-box:hover:not(.has-images) .upload-label h1 {
    transform: scale(1.4);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.preview-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

/* Make all preview images interactive */
.preview-image {
    pointer-events: auto;
}

/*.preview-image:hover {
    transform: translateY(-20px) scale(1.05) rotate(0deg) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000 !important;
}*/

.preview-container-item {
    position: absolute;
    transition: all 0.7s ease;
}

/*.preview-container-item:hover {
    transform: translateY(-20px) scale(1.05) rotate(0deg) !important;
    z-index: 1000 !important;
}

.preview-container-item:hover .delete-image-btn {
    opacity: 1;
}*/

.delete-image-btn {
    position: absolute;
    top: -20px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff6f61;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1001;
}

.delete-image-btn:hover {
    background: #ff4433;
    transform: scale(1.1);
}

.preview-image {
  border: 15px solid white;
  border-bottom: 55px solid white; /* Extra space at bottom for the "caption area" */
  height: 275px;
  width: 275px;
  
  /* Base dimensions 
  width: auto;
  height: auto; */
  object-fit: cover;
  object-position: center;
  /* Box styling */
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.4);
  
  /* Slightly rounded corners */
  border-radius: 0px;
  
  /* Polaroids typically have a slight rotation */
  transform: rotate(0deg);
  
  /* Spacing between multiple Polaroid images */
  margin: 5px;
  
  /* For consistent stacking context */
  position: relative;
  
  /* Optional - add a subtle transition for hover effects */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 400px) {
    .preview-image {
      border: 6px solid white;
      border-bottom: 20px solid white;
      height: 175px;
      width: 175px;
      margin: 2px;
      object-fit: cover;
      object-position: center;
      position: relative;
    }
  }

/*
.polaroid-caption {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Caveat', 'Cedarville Cursive', 'Reenie Beanie', cursive;  //Handwriting fonts 
    font-size: 18px;
    color: #333;
    pointer-events: none; //Makes the text non-selectable 
    transform: rotate(-1deg); //Slightly counters the image rotation for a natural look 
  }
    */

/*

.preview-image {
    position: relative; 
    width: 275px;
    height: 325px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}*/
/* preview image on mobile */
@media (max-width: 768px) {
    .preview-image {
        border: 6px solid white;
        border-bottom: 30px solid white;
        height: 210px;
        width: 200px;
        margin: 2px;
        object-fit: cover;
        object-position: center;
        position: relative;
    }

    .upload-box.has-images {
        border: none !important;
        height: 350px;
        max-width: 400px;
    }
    
    .upload-box.has-images .upload-label {
        display: none;
    }
    .delete-image-btn {
        position: absolute;
        top: 20px;
        right: 20%;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #ff6f61;
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        opacity: 0;
        transition: all 0.2s ease;
        z-index: 1001;
    }

}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5px;
    margin: 5px;
}

.best-score {
    border: 0px solid #ddd; /*removed*/
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.image-container {
    position: relative;
    width: 100%;
    margin-bottom: 4px;
}
.image-result {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.result-image {
    width: 92%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2000;
}
@media screen and (max-width: 768px) {
    .result-image {
        width: 96%;
        box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.5);
    }
}

/* Hover effect for image */
.result-image:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Feedback panel styling */
.feedback-panel {
    position: absolute;
    max-height: 70%;
    opacity: 0;
    bottom: 6%;
    left: 5%;
    width: 90%;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    border-top: 0px solid #ff6f61;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
    z-index: 2999;
    padding: 5px;
    box-sizing: border-box;
    overflow-y: auto !important; /* Force vertical scrolling */
    -webkit-overflow-scrolling: touch; /* For better mobile scrolling */
    overscroll-behavior: contain; /* Prevent scroll propagation */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2999;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
/* Chrome, Safari and newer Edge */
.feedback-panel::-webkit-scrollbar {
    display: none;
}

/* Prevent scrolling from bubbling to page */
.feedback-panel:hover {
    overflow-y: auto;
}

/* Show feedback on hover */
.image-result:hover .feedback-panel {
    transform: translateY(0);
    opacity: 1;
}

/* Feedback content */
.feedback-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    z-index: 3000;
}

.feedback-list li {
    margin-bottom: 6px;
    padding: 2px 3px;
    border-left: 0px solid #ff6f61;
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.feedback-list li:hover {
    background-color: #f2f2f2;
}

.feedback-list li:first-child {
    font-weight: 600;
    color: #1a1a1a;
    background-color: #f5f5f5;
}

.score-badge {
    position: absolute;
    top: 8%;
    left: 8%;
    background: #e0e0e0;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.9s ease;
    z-index: 1;
}

.best-score-badge {
    /*background: #4CAF50;*/
    color: rgb(255, 255, 255);
}

/* Login signup popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    z-index: 1001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 95%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.submit-button {
    width: 95%;
    padding: 0.75rem;
    background: #ff6f61;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    box-sizing: border-box;
}

.submit-button:hover {
    background: #ff4a3d;
}

.toggle-form {
    text-align: center;
    margin-top: 1rem;
}

.toggle-form button {
    background: none;
    border: none;
    color: #ff6f61;
    cursor: pointer;
}

.error-message {
    color: #dc3545;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}


.user-info {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.user-info span {
    color: #333;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-button {
    background-color: #dc3545 !important;
    display: none;
}

.logout-button:hover {
    background-color: #c82333 !important;
    display: none;
}

/* Mobile menu user info styles */
.mobile-menu .user-info {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.mobile-menu .user-info span {
    color: #333;
}

/* Adjust the nav container to accommodate user info */
.nav-cta-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {

    .nav-cta-container {
        display: none;
    }

    .nav-cta-container .user-info {
        display: none;
    }
}

.username {
    min-width: 100px; /* Adjust as needed */
    padding: 5px 10px; /* Ensure consistent spacing */
    visibility: visible; /* Ensure it's always present */
  }

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top:20px;
    margin-bottom: 40px;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent; /* Prevents tap highlight on iOS */
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0 10px;
    -webkit-tap-highlight-color: transparent; /* Prevents tap highlight on iOS */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
    user-select: none;
    -webkit-user-select: none; /* Prevents text selection */
    -webkit-touch-callout: none; /* Prevents callout menu */
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff6f61;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Adding active state styling for better touch feedback */
.slider:active:before {
    width: 22px; /* Slightly larger when pressed */
}


.image-url-container {
    display: flex;
    padding: 5px;
    border-top: 1px solid #eee;
}

.image-url {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 12px;
    color: #666;
}

.copy-url-btn {
    padding: 8px 12px;
    background-color: #ff6f61;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-url-btn:hover {
    background-color: #e55a4d;
}

/* Adjust the existing best-performer badge to not overlap with feedback */
.best-performer {
    position: absolute;
    /*top: 19px;
    right: 14px; */
    top: 8%;
    right: 8%;
    font-size: 24px;
    background-color: rgb(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*

    border: 2px solid #ff6f61;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}*/

/* General Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Popup Content with negative margin to move it higher */
.popup-content {
    background: white;
    position: relative;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 300px;
    margin-top: -400px; /* Add this to move it higher */
    z-index: 1001;
}

.error-content {
    border: 2px solid #ff0000;
    background-color: #fff0f0;
}

.error-content h3 {
    color: #ff0000;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

/*mobile menu button */
.menu-close {
    position: absolute;
    top: 20px;
    right: 50px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
}

.menu-close:hover {
    transform: scale(1.4);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preview-nav-arrow {
    position: absolute;
    top: 50%;
    color:#000;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background 0.2s;
}

.preview-nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.preview-nav-left {
    left: 30px;
}

.preview-nav-right {
    right: 30px;
}

/*
.current-preview {
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.5); 
} */

/* Mobile-specific styles */
@media (max-width: 768px) {
    .preview-nav-arrow {
        display: none;
        width: 25px;
        height: 25px;
        color:#000;
        font-size: 24px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        z-index: 2000;
    }
    
    .preview-nav-left {
        left: 30px;
    }
    
    .preview-nav-right {
        right: 30px;
    }
}

.analyses-counter {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 12px;
    background-color: #f0f0f0;
    color: #333;
    margin-right: 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Styling for low analyses count */
.analyses-counter.low-analyses {
    background-color: #ffe0e0;
    color: #ff4a3d;
    animation: pulse 2s infinite;
}

/* Styling for premium users */
.analyses-counter.premium-counter {
    background-color: #fffce0;
    color: #ff6f61;
    border: 1px solid #ffd700;
}

/* Pulse animation for low analyses count */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Mobile-specific styling */
@media (max-width: 768px) {
    #mobile-analyses-counter {
        display: block;
        text-align: center;
        margin: 0px auto;
        padding: 8px 15px;
        font-size: 1rem;
        width: 90%;
        max-width: 200px;
    }
    
    /* Hide desktop counter on mobile */
    #navbar-analyses-counter {
        display: none;
    }
}

/* Desktop-specific styling */
@media (min-width: 769px) {
    /* Hide mobile counter on desktop */
    #mobile-analyses-counter {
        display: none;
    }
}

.logo {
    text-decoration: none;
    color: inherit; /* This preserves the original text color */
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8; /* Optional: adds a subtle hover effect */
}


/* Review Section Styles */
.testimonials {
    padding: 15px;
    padding-bottom: 50px;
    background-color: #f9f9f9;
    text-align: center;
    overflow: hidden;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: #333;
}

.review-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
}

.review-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 280px;
    text-align: left;
    position: relative;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Desktop animations (swipe) */
@media (min-width: 768px) {
    .review-card {
        width: 420px;
    }

    .review-card.swipe-right {
        transform: translateX(100%);
        opacity: 0;
    }
    
    .review-card.swipe-left {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .review-card.swipe-out-right {
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    
    .review-card.swipe-out-left {
        transform: translateX(-100%);
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    
    .review-card.active {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile animations (fade) */
@media (max-width: 767px) {
    .review-card.fade-in {
        transform: translateX(0);
        opacity: 0;
    }
    
    .review-card.fade-out {
        transform: translateX(0);
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    
    .review-card.active {
        transform: translateX(0);
        opacity: 1;
    }
    
    .review-container {
        flex-direction: column;
        align-items: center;
    }
    
    .review-card {
        margin-bottom: 1.5rem;
    }
}

.user-info {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-details h4 {
    margin: 0;
    font-weight: 600;
}

.user-title {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.rating {
    margin-bottom: 0.2rem;
    font-size: 0.5rem;
    position: relative;
}

/* Star styles */
.star {
    position: relative;
    display: inline-block;
    width: 1.3em;
    overflow: hidden;
    font-size: 1.3rem;
    line-height: 1;
}

/* Firefox-specific fix */
@-moz-document url-prefix() {
    .star {
        font-size: 1.8rem; /* Try a larger size */
        line-height: 1; /* Ensure consistent line height */
        display: inline-block; /* Force block formatting */
        transform: scale(1.1); /* Additional scaling if needed */
    }
    
    .star.half:before {
        width: 50%;
        font-size: 1.8rem; /* Match the parent size */
        line-height: 1;
    }
}

.star.full {
    color: #ff6f61;
}

.star.empty {
    color: #ccc;
}

/* Half star style */
.star.half {
    position: relative;
    color: #ccc;
}

.star.half:before {
    content: "★";
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ff6f61;
}

.review-text {
    font-style: italic;
    color: #555;
    line-height: 1.5rem;
}
/* Generate different avatar background colors */
.review-card:nth-of-type(3n+1) .avatar { background-color: #e3f2fd; }
.review-card:nth-of-type(3n+2) .avatar { background-color: #f1f8e9; }
.review-card:nth-of-type(3n+3) .avatar { background-color: #fff3e0; }