/* Responsive Fixes for Desktop, Laptop, Tablet, and Mobile */

/* Base responsive fixes */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Fix for containers with excessive horizontal padding */
.not-alone-container {
    padding: 10vh 15vw !important;
    max-width: 100%;
    overflow-x: hidden;
}

.verified-container {
    padding: 5vh 15vw !important;
    max-width: 100%;
    overflow-x: hidden;
}

.book-container {
    padding: 0 15vw !important;
    max-width: 100%;
    overflow-x: hidden;
}

/* Desktop (1920px and above) */
@media (min-width: 1920px) {
    .not-alone-container {
        padding: 10vh 20vw !important;
    }
    
    .verified-container {
        padding: 5vh 20vw !important;
    }
    
    .book-container {
        padding: 0 20vw !important;
    }
}

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .not-alone-container {
        padding: 10vh 15vw !important;
    }
    
    .verified-container {
        padding: 5vh 15vw !important;
    }
    
    .book-container {
        padding: 0 15vw !important;
    }
}

/* Laptop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .not-alone-container {
        padding: 8vh 10vw !important;
    }
    
    .verified-container {
        padding: 5vh 10vw !important;
    }
    
    .book-container {
        padding: 0 10vw !important;
    }
    
    .content-wrapper {
        padding: 0 10vw !important;
    }
    
    .header {
        padding: 4vh 10vw !important;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .not-alone-container {
        padding: 6vh 8vw !important;
    }
    
    .verified-container {
        padding: 5vh 8vw !important;
    }
    
    .book-container {
        padding: 0 8vw !important;
    }
    
    .content-wrapper {
        padding: 0 8vw !important;
    }
    
    .header {
        padding: 3vh 8vw !important;
    }
    
    .card {
        width: 90% !important;
        padding: 25px !important;
    }
    
    .navBtnHolder {
        width: 100% !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    
    .card-item {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    
    .card-image {
        height: auto !important;
        max-height: 250px !important;
    }
    
    .weight-input-container {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .not-alone-container {
        padding: 5vh 5vw !important;
    }
    
    .verified-container {
        padding: 4vh 5vw !important;
    }
    
    .book-container {
        padding: 0 5vw !important;
    }
    
    .content-wrapper {
        padding: 0 5vw !important;
    }
    
    .header {
        padding: 3vh 5vw !important;
        font-size: 18px !important;
    }
    
    .card {
        width: 95% !important;
        padding: 20px !important;
        margin-top: 15px !important;
    }
    
    .heading {
        font-size: 20px !important;
    }
    
    .subheading {
        font-size: 14px !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    
    .navBtnHolder {
        flex-direction: column !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 10px !important;
    }
    
    .nav-button {
        width: 100% !important;
        font-size: 16px !important;
        padding: 15px 20px !important;
    }
    
    .card-item {
        padding-left: 2% !important;
        padding-right: 2% !important;
    }
    
    .card-image {
        height: auto !important;
        max-height: 200px !important;
    }
    
    .card-text {
        font-size: 16px !important;
    }
    
    .card-info {
        font-size: 14px !important;
    }
    
    .tick {
        height: 40px !important;
        width: 40px !important;
    }
    
    .weight-input-container {
        padding-left: 2% !important;
        padding-right: 2% !important;
        padding-top: 15px !important;
    }
    
    .input-group {
        margin-top: 30px !important;
    }
    
    .input-group label {
        font-size: 18px !important;
    }
    
    .textField {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    .my-button {
        font-size: 15px !important;
        padding: 12px !important;
    }
    
    .custom-button {
        font-size: 15px !important;
        padding: 12px !important;
    }
    
    .toggle-switch {
        width: 140px !important;
        height: 45px !important;
    }
    
    .toggle-option {
        font-size: 14px !important;
    }
    
    .progress-heading {
        font-size: 24px !important;
    }
    
    .progress-subheading {
        font-size: 16px !important;
    }
    
    .progressImg {
        height: 250px !important;
        width: 250px !important;
        max-width: 100% !important;
    }
    
    .prediction-heading {
        font-size: 20px !important;
    }
    
    .prediction-subtext {
        font-size: 14px !important;
    }
    
    .not-alone-heading {
        font-size: 22px !important;
    }
    
    .not-alone-subtext {
        font-size: 16px !important;
    }
    
    .verified-heading {
        font-size: 22px !important;
    }
    
    .verified-subtext {
        font-size: 15px !important;
    }
    
    .battery {
        height: 300px !important;
        width: 2.5rem !important;
    }
    
    .calculate {
        font-size: 18px !important;
        right: -110% !important;
    }
    
    .resp-chart {
        height: 250px !important;
        min-width: 100% !important;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .not-alone-container {
        padding: 4vh 4vw !important;
    }
    
    .verified-container {
        padding: 4vh 4vw !important;
    }
    
    .book-container {
        padding: 0 4vw !important;
    }
    
    .content-wrapper {
        padding: 0 4vw !important;
    }
    
    .header {
        padding: 2vh 4vw !important;
        font-size: 16px !important;
    }
    
    .card {
        width: 100% !important;
        padding: 15px !important;
        margin-top: 10px !important;
    }
    
    .heading {
        font-size: 18px !important;
    }
    
    .subheading {
        font-size: 13px !important;
        padding-left: 2% !important;
        padding-right: 2% !important;
    }
    
    .navBtnHolder {
        flex-direction: column !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 8px !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .nav-button {
        width: 100% !important;
        font-size: 14px !important;
        padding: 12px 15px !important;
    }
    
    .result-button {
        font-size: 15px !important;
        padding: 12px 20px !important;
    }
    
    .card-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .card-image {
        height: auto !important;
        max-height: 180px !important;
    }
    
    .card-text {
        font-size: 15px !important;
    }
    
    .card-info {
        font-size: 13px !important;
    }
    
    .tick {
        height: 35px !important;
        width: 35px !important;
        top: 5% !important;
    }
    
    .weight-input-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 10px !important;
    }
    
    .input-group {
        margin-top: 20px !important;
        gap: 8px !important;
    }
    
    .input-group label {
        font-size: 16px !important;
        min-width: 25px !important;
    }
    
    .textField {
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    .my-button {
        font-size: 14px !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
        margin-top: 10px !important;
    }
    
    .custom-button {
        font-size: 14px !important;
        padding: 10px !important;
        margin-bottom: 5px !important;
        margin-top: 5px !important;
    }
    
    .toggle-switch {
        width: 130px !important;
        height: 40px !important;
        margin-bottom: 15px !important;
    }
    
    .toggle-option {
        font-size: 13px !important;
    }
    
    .progress-heading {
        font-size: 20px !important;
    }
    
    .progress-subheading {
        font-size: 14px !important;
    }
    
    .progressImg {
        height: 200px !important;
        width: 200px !important;
        max-width: 100% !important;
    }
    
    .prediction-heading {
        font-size: 18px !important;
    }
    
    .prediction-subtext {
        font-size: 13px !important;
    }
    
    .cont-button {
        font-size: 14px !important;
        padding: 12px !important;
    }
    
    .not-alone-heading {
        font-size: 20px !important;
    }
    
    .not-alone-subtext {
        font-size: 14px !important;
    }
    
    .verified-heading {
        font-size: 20px !important;
    }
    
    .verified-subtext {
        font-size: 14px !important;
    }
    
    .battery {
        height: 250px !important;
        width: 2rem !important;
    }
    
    .liquid {
        width: 2rem !important;
    }
    
    .calculate {
        font-size: 16px !important;
        right: -120% !important;
    }
    
    .resp-chart {
        height: 200px !important;
        min-width: 100% !important;
    }
    
    .card-grid {
        gap: 12px !important;
        margin-top: 15px !important;
    }
    
    .tricky-heading {
        font-size: 22px !important;
    }
    
    .trickySubheading {
        font-size: 14px !important;
    }
    
    .tricky-subtext {
        font-size: 16px !important;
    }
}

/* Extra small devices (below 320px) */
@media (max-width: 319px) {
    .not-alone-container,
    .verified-container,
    .book-container,
    .content-wrapper {
        padding-left: 2vw !important;
        padding-right: 2vw !important;
    }
    
    .header {
        padding: 2vh 2vw !important;
        font-size: 14px !important;
    }
    
    .card {
        padding: 12px !important;
    }
    
    .heading {
        font-size: 16px !important;
    }
    
    .nav-button,
    .result-button,
    .my-button,
    .custom-button,
    .cont-button {
        font-size: 13px !important;
        padding: 10px !important;
    }
}

/* Fix for images to be responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for overflow issues */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all containers respect viewport width */
.content-wrapper,
.header,
.card,
.not-alone-container,
.verified-container,
.book-container,
.prediction-container,
.progress-container {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix for horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        position: relative;
    }
    
    * {
        max-width: 100%;
    }
}

