@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --primary: #2A2A2A;
    --secondary: #F5F5F5;
    --happy: #4CAF50;
    --sad: #2196F3;
    --excited: #FF5722;
    --chill: #673AB7;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('movieposters.png') center/cover;
    z-index: -1;
}

body {
    font-family: var(--body-font);
    margin: 0;
    color: white;
    min-height: 100vh;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    position: relative;
    padding-top: 75px; /* Increased from 55px to give more space below navbar */
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
}

.homepage body {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.processing {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Keep the dark overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    pointer-events: none;
}

.processing.visible {
    display: flex !important;
    pointer-events: auto;
}

.processing .modal-content {
    background: none; /* Remove the black box behind content */
    padding: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.processing p {
    color: white;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.homepage body {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mood-selector {
    width: 860px; /* Reduced width */
    height: 350px; /* Set height */
    margin-left: 20px; /* Keep aligned to the left left */
    padding-top: 80px; /* Increase padding to ensure content is below the navbar */
}

.navbar {
    background-color: #1a1818;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    height: 35px; /* Reduced base height */
    padding-left: 2%;
    z-index: 1000; /* Ensure navbar is always on top */
    backdrop-filter: blur(8px); /* Optional: adds a blur effect to the navbar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px; /* Increased gap between logo and title */
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    height: 55px; /* Match navbar total height (35px + 10px*2 padding) */
    width: 55px;
    object-fit: contain;
    margin-top: -10px; /* Compensate for navbar padding */
    margin-bottom: -10px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(
        to right,
        #ffffff 0%,
        #e6e6e6 20%,
        #ffffff 40%,
        #e6e6e6 60%,
        #ffffff 80%,
        #e6e6e6 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--heading-font);
    position: relative;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.2);
    animation: shimmer 3s infinite linear;
    background-size: 200% 100%;
    cursor: pointer; /* Add cursor pointer */
}

.brand-highlight {
    background: linear-gradient(45deg, 
        #ff0000 0%,
        #ff4d4d 25%,
        #ff1a1a 50%,
        #ff4d4d 75%,
        #ff0000 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 2px 15px rgba(255, 0, 0, 0.4);
    position: relative;
    animation: redShimmer 3s infinite linear;
    background-size: 200% 100%;
}

@keyframes redShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255,255,255,0.8),
        transparent
    );
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.header {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

h1, h2, h3, h4, .navbar-brand, .movie-title {
    font-family: var(--heading-font);
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    color: #666;
    font-size: 1.1rem;
}

.mood-buttons { /* GROUP BUTTONS  */
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 buttons per row */
    gap: 5%; /* Reduced gap */
    padding-left: 10%; /* Add left padding */
    justify-content: start; /* Align buttons to the left */
    margin-top: 50px;
}

.mood-btn { /* Only Button */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-family: var(--heading-font);
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url('button.png') no-repeat center center;
    background-size: 100% 100%;
    color: white;
}

.mood-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(46, 46, 45, 0.8); /* Golden glow effect */
}


.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px; /* Space between spinner and text */
}

/* Ensure the spinner and text stay centered on the screen */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.recommendation {
    max-width: 800px;
    margin: 40px auto;
    display: none;
    padding: 50px; /* Updated padding */
}

.movie-poster {
    width: 250px;
    height: 375px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}



#movieDisplay {
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
    min-height: calc(100vh - 75px); /* Adjusted to account for navbar height */
    position: relative;
    z-index: 1; /* Lower z-index than navbar */
    padding-top: 20px; /* Add space at the top */
    padding-bottom: 100px; /* Increased space for bottom button */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    gap: 30px;
    justify-content: center;
    background: transparent;
}

.movie-info {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 20px 40px;
    margin-bottom: 30px;
    transition: transform 0.2s ease;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2; /* Higher than movieDisplay but lower than navbar */
}

.movie-info:hover {
    transform: translateX(10px);
}

.movie-details {
    padding: 10px 20px;
    overflow: hidden; /* Prevent content overflow */
    display: flex;
    flex-direction: column;
    text-align: left; /* Explicitly set left alignment for movie details */
}

.movie-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 600;
}

.movie-year, .movie-rating, .movie-genre, .movie-director {
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 1.1rem;
    margin: 10px 0;
    text-align: left; /* Force left alignment for all movie text elements */
}

.movie-director-subtle {
    font-size: 0.9rem;
    margin: -5px 0 15px 0;
    color: #aaa;
    font-style: italic;
    text-align: left; /* Force left alignment for all movie text elements */
}

.rating-container {
    margin: 15px 0;
}

.movie-rating {
    font-size: 1.3rem;
    margin: 0;
    color: #fff;
}

.vote-count {
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.movie-meta {
    color: #666;
    margin: 10px 0;
    font-size: 0.9rem;
}

.watch-btn {
    display: inline-flex; /* Change from inline-block to inline-flex */
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    background: rgba(243, 1, 1, 0.9);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    align-self: flex-start; /* Align button to the left */
    max-width: calc(100% - 40px); /* Prevent button overflow */
    box-sizing: border-box;
    text-align: center;
}

.watch-btn:hover {
    background: rgb(243, 1, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 1, 1, 0.3);
}

.button-group { /* Chosose Another Mood  */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* Increased z-index to ensure visibility */
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 200px;
}

.back-btn, .more-btn {
    background: #303030;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: bold;
}

.more-btn {
    background: rgb(243, 1, 1);
}

.back-btn:hover {
    background: #404040;
    transform: translateY(-2px);
}

.more-btn:hover {
    background: #ea0101;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mood-btn {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }

    .navbar {
        justify-content: center; /* Center navbar content on mobile */
        padding-left: 0; /* Remove left padding on mobile */
        gap: 10px;
        height: 30px;
        padding: 10px;
    }

    .navbar-logo {
        height: 50px; /* Match mobile navbar total height (30px + 10px*2 padding) */
        width: 50px;
        margin-top: -10px;
        margin-bottom: -10px;
    }

    .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 1px;
        line-height: 1.2;
        max-width: calc(100vw - 120px); /* Account for logo and padding */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-highlight {
        font-size: inherit;
        letter-spacing: inherit;
    }

    #movieDisplay {
        padding-bottom: 120px; /* Increased bottom padding to make space for buttons */
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        bottom: 15px; /* Reduced bottom distance */
        width: 90%; /* Make buttons group narrower */
    }

    .movie-info:last-child {
        margin-bottom: px; /* Add space after last movie card */
    }

    .message.ai:first-child {
        font-size: 1.3rem;
        padding: 20px;
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.2);
    }

    .input-area {
        flex-direction: row; /* Change from column to row */
        gap: 8px;
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    #userInput {
        width: 70%; /* Take most of the space */
        min-width: 0; /* Allow input to shrink */
    }

    #send-btn {
        width: 30%; /* Take remaining space */
        min-width: 80px; /* Minimum width for button */
        padding: 10px;
        margin: 0;
        font-size: 11px; /* Reduced from 12px */
    }

    body {
        font-size: 15px;
        line-height: 1.5;
        padding-top: 70px; /* Adjusted for smaller navbar on mobile */
    }
    
    h1 {
        font-size: 2rem;
    }

    .nav-brand {
        gap: 8px;
    }
    
    .navbar-logo {
        height: 30px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-text {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 30px;
        padding: 0 15px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .chat-container {
        top: auto; /* Remove top positioning */
        width: 85%;
        max-height: 35vh;
        padding: 20px;
        min-height: auto;
        margin-top: 20px; /* Reduced from 40px */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Important: keep items at extremes */
    }

    .instructions-container {
        top: auto; /* Remove top positioning */
        width: 85%;
        padding: 20px;
        margin-top: 20px; /* Added specific margin */
    }

    .chat-box {
        flex: 1;
        margin-bottom: 10px;
        padding: 8px;
        overflow-y: auto;
        min-height: 0; /* Allow shrinking */
    }

    .input-area {
        padding-top: 8px;
        gap: 6px;
        width: 100%;
        position: relative;
        bottom: 0;
        flex-shrink: 0; /* Prevent shrinking */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
        padding: 8px;
        margin: 0; /* Remove margin */
    }

    .chat-container {
        position: relative;
        width: 85%;
        height: 280px;
        max-height: 280px;
        min-height: 280px;
        padding: 20px;
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .input-area {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
        margin: 0;
        z-index: 3;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .chat-box {
        flex: 1;
        overflow-y: auto;
        margin-bottom: 50px; /* Add space for input area */
        padding-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 5px 10px;
    }

    .navbar-logo {
        height: 40px; /* Increased from 20px */
    }

    .navbar-brand {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        padding-right: 10px;
    }

    .nav-brand {
        gap: 6px;
    }

    .mood-buttons {
        grid-template-columns: 1fr;
    }

    .mood-btn {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }

    .movie-info {
        margin: 10px;
        padding: 15px; /* Reduced padding */
    }

    .watch-btn {
        width: auto; /* Change from 100% to auto to prevent excessive width */
        max-width: 80%; /* Limit maximum width */
        margin: 15px auto; /* Center the button with auto margins */
        text-align: center;
        padding: 10px 15px;
        display: flex; /* Use flexbox for better text alignment */
        justify-content: center; /* Center text horizontally */
        align-items: center; /* Center text vertically */
    }

    .movie-details {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the button container */
    }

    .watch-btn {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
        text-align: center;
        padding: 10px 15px;
    }

    .movie-details {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .watch-btn {
        width: 100%;
        text-align: center;
    }

    .input-area {
        flex-direction: row; /* Ensure it stays row even on smallest screens */
    }

    #userInput {
        width: 65%; /* Slightly smaller on very small screens */
    }

    #send-btn {
        width: 35%;
        min-width: 70px;
        font-size: 10px; /* Even smaller for very small screens */
    }

    #movieDisplay {
       
        padding-bottom: 140px; /* Even more padding for smallest screens */
        padding-top: 10px; /* Reduced top padding */
    }

    .movie-info {
        margin: 15px 10px; /* Adjust vertical and horizontal margins */
    }

    .button-group {
        bottom: 10px;
        width: 85%;
        padding: 12px;
    }

    .movie-info:last-child {
        margin-bottom: 50px; /* More space for smallest screens */
    }

 

    .hero-text {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 25px;
        padding: 0 10px;
        max-width: 95%;
    }
}

/* Fix: Remove duplicate media query and add proper selector */
@media (max-width: 480px) {
    .chat-container {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        width: 100%;
        letter-spacing: 0.5px;
        height: auto;
        min-height: 250px;
        display: flex;
        flex-direction: column;
    }

    .chat-box {
        flex: 1;
        overflow-y: auto;
    }

    .input-area {
        position: relative;
        width: 100%;
        margin-top: auto;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

#send-btn:hover {
    background: rgba(243, 1, 1, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 1, 1, 0.2);
}

/* Update mobile styles for the larger button */
@media (max-width: 768px) {
    #send-btn {
        padding: 15px 30px;
        font-size: 12px; /* Even smaller on mobile */
    }
}

/* Remove unused chat message styles */
.chat-messages {
    display: none;
}

.ai-reason {
    color: #ffd700;
    font-style: italic;
    margin: 10px 0;
    padding: 5px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-container {
    position: relative;  /* Changed from fixed */
    width: 30%;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.9); /* Increased opacity from 0.7 to 0.9 */
    padding: 25px; /* Removed extra top padding that was for back button */
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px); /* Increased blur effect */
    min-width: 300px; /* Add minimum width */
    margin: 20px auto 30px;  /* Changed from top position */
    margin-top: 20px; /* Ensure content starts below navbar */
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: auto;  /* Remove fixed height */
    min-height: 320px; /* Increased from 280px to provide more space */
    max-height: 320px; /* Increased to match min-height */
    overflow-y: hidden;
    /* Add justify-content to push items to their extremes */
    justify-content: space-between;
    /* Make sure chat container layout is correct */
    box-sizing: border-box;
}

.instructions-container {
    position: relative;  /* Changed from fixed */
    width: 30%;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    margin: 30px auto;  /* Center horizontally with margin */
    z-index: 2;
    text-align: left; /* Left-align all text in instructions */
}

.chat-box {
    /* Use a fixed flex value to prevent growth */
    flex: 1;
    padding: 10px;
    /* Remove bottom margin to eliminate gap before input */
    margin-bottom: 0;
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Stack messages vertically */
    align-items: flex-start; /* Default for AI messages */
    overflow: visible;
    max-height: calc(100% - 60px); /* Account for input area height */
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto; /* Enable scrolling for messages */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    /* Set min-height to ensure chat box doesn't collapse */
    min-height: 180px; /* Increased minimum height to provide space */
    margin-bottom: 10px; /* Add margin to create space before input area */
    background-color: rgba(25, 25, 25, 0.85); /* Lighter black instead of gray */
    border-radius: 8px; /* Add rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    padding-bottom: 20px; /* Extra padding at bottom for visual space */
}

.message {
    padding: 12px 15px;
    margin: 8px 0; /* Remove side margin to prevent shifting */
    border-radius: 10px;
    max-width: 80%; /* Ensures messages don't go too wide */
    width: calc(100% - 20px); /* Account for padding */
    box-sizing: border-box;
    display: flex; /* Allows better control of text alignment */
    color: white; /* Ensure text is white */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); /* Subtle text shadow for better readability */
}

.message.ai {
    background: rgba(255, 255, 255, 0.2); /* Slightly more opaque for better contrast */
    justify-content: flex-start;
    font-size: 0.85rem; /* Make all AI messages this size */
    line-height: 1.3;
    padding: 8px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: white; /* Explicitly set text color */
}

/* Remove any special styling for first message */
.message.ai:first-child {
    font-size: 0.85rem; /* Same size as other messages */
    padding: 8px 10px;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 8px;
}

.message.user {
    background: rgba(243, 1, 1, 0.8); /* Increased opacity for better contrast */
    color: white; /* Explicitly set text color */
    text-align: right;
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 80%;
    width: fit-content;
    word-wrap: break-word;
    align-self: flex-end;
    margin-left: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Add shadow for better definition */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.message.ai,
.message.user {
    max-width: 95%; /* Make messages wider */
    font-size: 14px;
    padding: 10px 15px;
}

/* Simplified input area styles - replaces all previous input-area styles */
.input-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(20, 20, 20, 0.95);
    padding: 12px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 10; /* Ensure input area appears above other elements */
}

#userInput {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    color: #333;
    margin: 0;
    width: calc(100% - 20px);
    padding: 10px 15px;
    box-sizing: border-box;
    min-width: 0; /* Allow input to shrink */
}

#send-btn {
    width: auto;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(243, 1, 1, 0.7);
    color: white;
    cursor: pointer;
    font-size: 13px; /* Reduced from 16px */
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    min-width: 100px;
    padding: 10px 15px;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .movie-info {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }

    .movie-poster {
        width: 200px;
        height: 300px;
        margin: 0 auto;
    }

    #movieDisplay {
        grid-template-columns: 1fr;
        padding: 10px;
        padding-top: 20px; /* Reduced from 70px to fix the gap */
    }

    .movie-info {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
        margin-top: 10px; /* Reduced from 20px */
    }

    .mood-buttons {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 20px;
    }

    .chat-container {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 5px 10px;
    }

    .navbar-logo {
        height: 40px; /* Increased from 20px */
    }

    .navbar-brand {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        padding-right: 10px;
    }

    .nav-brand {
        gap: 6px;
    }

    .mood-buttons {
        grid-template-columns: 1fr;
    }

    .mood-btn {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }

    .movie-info {
        margin: 10px;
        padding: 15px; /* Reduced padding */
    }

    .watch-btn {
        width: auto; /* Change from 100% to auto to prevent excessive width */
        max-width: 80%; /* Limit maximum width */
        margin: 15px auto; /* Center the button with auto margins */
        text-align: center;
        padding: 10px 15px;
        display: flex; /* Use flexbox for better text alignment */
        justify-content: center; /* Center text horizontally */
        align-items: center; /* Center text vertically */
    }

    .movie-details {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center the button container */
    }

    .watch-btn {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
        text-align: center;
        padding: 10px 15px;
    }

    .movie-details {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .watch-btn {
        width: 100%;
        text-align: center;
    }

    .input-area {
        flex-direction: row; /* Ensure it stays row even on smallest screens */
    }

    #userInput {
        width: 65%; /* Slightly smaller on very small screens */
    }

    #send-btn {
        width: 35%;
        min-width: 70px;
        font-size: 10px; /* Even smaller for very small screens */
    }

    #movieDisplay {
       
        padding-bottom: 140px; /* Even more padding for smallest screens */
        padding-top: 10px; /* Reduced top padding */
    }

    .movie-info {
        margin: 15px 10px; /* Adjust vertical and horizontal margins */
    }

    .button-group {
        bottom: 10px;
        width: 85%;
        padding: 12px;
    }

    .movie-info:last-child {
        margin-bottom: 50px; /* More space for smallest screens */
    }

  

    .hero-text {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 25px;
        padding: 0 10px;
        max-width: 95%;
    }
}

/* Update mobile styles */
@media (max-width: 768px) {
    .chat-container {
        top: auto; /* Remove top positioning */
        width: 85%;
        max-height: 35vh;
        padding: 20px;
        min-height: auto;
        margin-top: 20px; /* Reduced from 40px */
    }

    .instructions-container {
        top: auto; /* Remove top positioning */
        width: 85%;
        padding: 20px;
        margin-top: 20px; /* Added specific margin */
    }

    /* Remove fixed positioning references */
    body.chat-page {
        height: auto;
        min-height: 100vh;
        padding-top: 55px; /* Match navbar height */
    }

    /* Adjust overall container spacing */
    #chatContainer, #instructionsContainer {
        margin-bottom: 20px;
    }

    .chat-box {
        margin-bottom: 10px;
        padding: 8px;
    }

    .input-area {
        padding-top: 8px;
        gap: 6px;
        width: calc(100% - 16px);
        margin: 8px;
    }

    #userInput {
        padding: 12px 15px;
        font-size: 14px;
    }

    #send-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .message {
        padding: 10px 12px;
        font-size: 14px;
        max-width: 90%;
    }

    .message.ai:first-child {
        font-size: 1rem;
        padding: 15px;
        line-height: 1.4;
    }

    .message.ai,
    .message.ai:first-child {
        font-size: 0.85rem;
        padding: 8px 10px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .chat-container {
        top: 20%; /* Move up more on smaller screens */
        width: 90%;
        padding: 15px;
        margin-top: 15px; /* Further reduced for smallest screens */
    }

    .instructions-container {
        top: 62%;
        padding: 15px;
        margin-top: 15px;
    }

  

    #userInput, #send-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .message {
        padding: 8px 10px;
        font-size: 13px;
    }
}

.landing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    padding-top: 60px; /* Ensure landing content starts below navbar */
    color: white;
    text-align: center;
}

.landing-content h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    font-weight: 800;
    font-family: 'Bebas Neue', sans-serif;
    background: linear-gradient(
        to right,
        #ffffff 0%,
        #f0f0f0 20%,
        #ffffff 40%,
        #f0f0f0 60%,
        #ffffff 80%,
        #f0f0f0 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s infinite linear;
    background-size: 200% 100%;
    letter-spacing: 2px; /* Increased letter spacing for Bebas Neue */
    line-height: 1.2; /* Adjusted line height for Bebas Neue */
    position: relative;
    padding: 10px 20px;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes titleGlow {
    0% {
        background-position: 200% center;
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
    100% {
        background-position: -200% center;
        filter: brightness(1);
    }
}

.landing-content h2 {
    font-size: 2rem;
    color: #ff3333;
    margin-bottom: 40px;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: none;
}

@media (max-width: 768px) {
    .landing-content h1 {
        font-size: 2.4rem;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .landing-content h2 {
        font-size: 1.6rem;
        padding: 0 15px;
    }
}

.intro-section {
    margin: 40px auto;
    max-width: 800px;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-family: var(--body-font);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
    padding: 0 20px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.8);
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 0, 0, 0.7), 
        rgba(255, 77, 77, 0.7)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    color: #cc1111; /* Changed from #ff3333 to a darker red */
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    margin: 15px 0;
    padding-left: 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
}

.feature-card li:before {
    content: "→";
    color: #ff3333;
    position: absolute;
    left: 0;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.feature-card li:hover:before {
    transform: translateX(5px);
}

.cta-section {
    margin: 60px auto;
    max-width: 600px;
}

.start-btn {
    background: rgb(243, 1, 1);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: var(--heading-font);
    font-weight: 500;
}

.start-btn:hover {
    background: #ea0101;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 1, 1, 0.3);
}

#chatContainer {
    display: none;
}

@media (max-width: 768px) {
    .landing-content h1 {
        font-size: 2rem;
    }

    .landing-content h2 {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 25px;
    }

    .feature-card h3 {
        font-size: 1.5rem;
        letter-spacing: 0.8px;
    }

    .feature-card p,
    .feature-card li {
        font-size: 1rem;
    }
}

/* Styles for the new instructions section */
.chat-instructions {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left; /* Left-align all text in instructions */
}

.chat-instructions h4 {
    color: #cc1111; /* Changed from #ff3333 to a darker red */
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left; /* Force left alignment for all instruction elements */
}

.chat-instructions p {
    margin: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left; /* Force left alignment for all instruction elements */
}

.chat-instructions ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
    text-align: left; /* Force left alignment for all instruction elements */
}

.chat-instructions li {
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: left; /* Force left alignment for all instruction elements */
}

.chat-instructions li:before {
    content: "•";
    color: #ff3333;
    position: absolute;
    left: 0;
}

.instruction-tip {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 768px) {
    .chat-instructions {
        margin-top: 15px;
        padding: 12px;
    }

    .chat-instructions h4 {
        font-size: 1.3rem;
        letter-spacing: 0.8px;
    }

    .chat-instructions p,
    .chat-instructions li {
        font-size: 0.85rem;
    }

    .chat-container {
        position: relative;
        width: 85%;
        height: 280px;
        max-height: 280px;
        padding: 20px;
        margin: 20px auto;
        display: flex;
        flex-direction: column;
        overflow: hidden; /* Add to prevent scroll */
    }

    .chat-box {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
        margin-bottom: 60px; /* Make space for input area */
    }

    .input-area {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 10px 20px;
        box-sizing: border-box;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Fix specifically for the chat page and movie display page */
.chat-page, .movies-visible {
    padding-top: 75px; /* Add space below navbar */
}

/* Keep landing page styling intact */
.homepage {
    padding-top: 0;
}

/* Chat page specific fixes */
.chat-page .chat-container {
    margin-top: 30px; /* More space at top */
    max-height: 60vh; /* Taller chat box */
    height: auto;
    min-height: 300px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.chat-page .instructions-container {
    margin-top: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Movie display page specific fixes */
.movies-visible {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    background-color: transparent !important; /* Override any background color */
    padding-top: 55px !important; /* Reduce padding from 75px to 55px */
    text-align: left; /* Override any inherited centering */
}

.movies-visible #movieDisplay {
    background-color: transparent; /* Ensure container is transparent */
    padding-top: 15px; /* Reduced from 25px */
    margin-top: 10px; /* Reduced from 20px */
    text-align: left; /* Ensure movie display content is left-aligned */
    margin-top: 20px; /* Fix: Added property to selector */
}

/* Fix button container for movie page */
.movies-visible .button-group {
    position: fixed;
    bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
}

/* Fix positioning of content on smaller screens */
@media (max-width: 768px) {
    .chat-page .chat-container {
        margin-top: 25px;
        max-height: 50vh;
    }
    
    .chat-page .instructions-container {
        margin-top: 15px;
    }
    
    .movies-visible #movieDisplay {
        padding-top: 10px; /* Further reduced for mobile */
        margin-top: 5px; /* Further reduced for mobile */
    }
}

/* Ensure processing overlay stays on top */
.processing {
    z-index: 9999;
}

/* Ensure the same background appears on all pages */
body::before,
.homepage::before,
.chat-page::before,
.movies-visible::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('movieposters.png') center/cover;
    z-index: -1;
}

/* Fix movie display page background and styling */
.movies-visible {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    background-color: transparent !important;
    padding-top: 55px !important;
    text-align: left; /* Override any inherited centering */
}

.movies-visible #movieDisplay {
    background-color: transparent;
    padding-top: 15px;
    margin-top: 10px;
    text-align: left; /* Ensure movie display content is left-aligned */
}

.movie-details {
    padding: 10px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left; /* Explicitly set left alignment for movie details */
}

.movie-title, .movie-year, .movie-genre, .movie-director, .movie-plot, .movie-director-subtle {
    text-align: left; /* Force left alignment for all movie text elements */
}

/* Fix instructions container alignment */
.instructions-container, .chat-instructions {
    text-align: left; /* Left-align all text in instructions */
}

.chat-instructions h4, .chat-instructions p, .chat-instructions ul, .chat-instructions li {
    text-align: left; /* Force left alignment for all instruction elements */
}

/* Mobile media query adjustments */
@media (max-width: 1024px) {
    /* Fix: Replaced JavaScript comments with CSS comments */
    /* ...existing code... */
    
    #movieDisplay {
        grid-template-columns: 1fr;
        padding: 10px;
        padding-top: 20px; /* Reduced from 70px to fix the gap */
    }
    
    .movie-info {
        /* Fix: Replaced JavaScript comments with CSS comments */
        /* ...existing code... */
        margin-top: 10px; /* Reduced from 20px */
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    /* Fix: Replaced JavaScript comments with CSS comments */
    /* ...existing code... */
    
    .movies-visible #movieDisplay {
        padding-top: 10px; /* Further reduced for mobile */
        margin-top: 5px; /* Further reduced for mobile */
    }
}

@media (max-width: 480px) {
    /* Fix: Replaced JavaScript comments with CSS comments */
    /* ...existing code... */
    
    /* Fix mobile movie display specifically */
    .movies-visible {
        padding-top: 50px !important; /* Reduced for mobile */
    }
    
    .movies-visible #movieDisplay {
        padding-top: 5px; /* Minimal padding for phone view */
        margin-top: 0; /* Remove margin for phone view */
    }
    
    #movieDisplay {
        padding-bottom: 140px; /* Keep bottom padding for buttons */
        padding-top: 10px; /* Reduced top padding */
    }
    
    .movie-info {
        margin-top: 10px; /* Consistent spacing between movies */
    }
}

/* Mobile Responsive Design - Improved spacing */
@media (max-width: 768px) {
    .chat-container {
        top: auto;
        width: 85%;
        max-height: 45vh; /* Increased from 35vh to use more screen space */
        padding: 15px; /* Reduced padding */
        min-height: auto;
        margin-top: 10px; /* Reduced from 20px to minimize gap */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .instructions-container {
        top: auto;
        width: 85%;
        padding: 15px; /* Reduced padding */
        margin-top: 10px; /* Reduced from 20px to minimize gap */
    }
    
    /* Fix spacing between navbar and content */
    body.chat-page {
        padding-top: 55px !important; /* Ensure consistent spacing below navbar */
    }
    
    /* Fix spacing for movie display */
    .movies-visible #movieDisplay {
        padding-top: 5px; /* Reduced from 15px to minimize gap */
        margin-top: 5px; /* Reduced from 10px to minimize gap */
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .chat-container {
        width: 92%; /* Slightly wider to use more screen space */
        padding: 12px; /* Further reduced padding */
        margin-top: 8px; /* Further reduced margin */
        height: auto; /* Let height be determined by content */
        min-height: 250px; /* Reduced min-height */
    }

    .instructions-container {
        padding: 12px; /* Reduced padding */
        margin-top: 8px; /* Further reduced margin */
    }
    
    /* Fix spacing for movie display on small screens */
    #movieDisplay {
        padding-top: 5px !important; /* Force smaller padding */
        padding-bottom: 100px; /* Keep room for action buttons */
    }
    
    /* Fix chat box layout */
    .chat-box {
        margin-bottom: 50px; /* Ensure space for input area */
    }
    
    .input-area {
        position: absolute; /* Fix input at bottom */
        bottom: 0;
        width: 100%;
        left: 0;
        padding: 10px;
        box-sizing: border-box;
    }
}

/* Enhanced Mobile Chat Input Area Fix */
@media (max-width: 768px) {
    /* ...existing code... */
    
    .chat-container {
        position: relative !important;
        width: 85%;
        padding: 15px;
        padding-bottom: 70px !important; /* Make space for input area */
        min-height: 300px !important; /* Ensure container is tall enough */
        max-height: none !important; /* Remove max-height constraint */
        height: auto !important;
        overflow: hidden !important;
        margin-top: 10px;
        margin-bottom: 20px;
        display: flex !important;
        flex-direction: column !important;
    }

    .chat-box {
        flex: 1;
        overflow-y: auto;
        margin-bottom: 60px !important; /* Make room for input area */
        height: auto !important;
        min-height: 150px !important;
    }

    .input-area {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 10px !important;
        z-index: 100 !important; /* Very high z-index to ensure visibility */
        display: flex !important;
        flex-direction: row !important;
        background: rgba(0, 0, 0, 0.9) !important;
        border-radius: 0 0 15px 15px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #userInput {
        display: block !important;
        flex: 1 !important;
        width: 70% !important;
        min-width: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #send-btn {
        display: block !important;
        width: 30% !important;
        min-width: 80px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Even more specific for smaller phones */
@media (max-width: 480px) {
    .chat-container {
        height: 350px !important; /* Fixed height to ensure proper layout */
        width: 92%;
        padding: 12px;
        padding-bottom: 70px !important;
        margin-top: 8px;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .input-area {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        box-sizing: border-box !important;
        bottom: 0 !important;
        position: absolute !important;
        z-index: 999 !important; /* Extremely high z-index */
        background-color: rgba(0, 0, 0, 0.95) !important;
    }
    
    /* Ensure no transform or other properties hide the input */
    html body .chat-container .input-area {
        transform: none !important;
        clip: auto !important;
        clip-path: none !important;
        display: flex !important;
    }
    
    /* Ensure scrolling doesn't hide the input */
    .chat-box {
        padding-bottom: 70px !important;
        max-height: calc(100% - 70px) !important;
    }
}

/* Center the title in the navigation bar on mobile */
@media (max-width: 768px) {
    .navbar {
        justify-content: center; /* Already centered, but we'll reinforce it */
        padding: 10px 5px; /* Reduced horizontal padding */
        gap: 8px; /* Reduced gap between logo and brand */
        text-align: center;
        box-sizing: border-box;
    }
    
    .nav-brand {
        flex: 1;
        display: flex;
        justify-content: center; /* Center the brand text */
        text-align: center;
    }
    
    .navbar-logo {
        height: 40px; /* Slightly reduced size */
        width: 40px;
        margin: 0; /* Reset margins */
        flex: 0 0 auto; /* Prevent logo from growing/shrinking */
    }
    
    .navbar-brand {
        text-align: center; /* Center the text itself */
        margin: 0 auto; /* Center horizontally */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 5px;
        justify-content: center;
    }
    
    .navbar-logo {
        height: 35px; /* Further reduced for smallest screens */
        width: 35px;
        margin-right: 5px; /* Small right margin */
    }
    
    .nav-brand {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.chat-page {
        padding-top: 75px !important; /* Increased padding to prevent navbar overlap */
    }
    
    .chat-container {
        position: relative !important;
        width: 85%;
        padding: 15px;
        padding-bottom: 70px !important;
        min-height: 300px !important;
        max-height: none !important;
        height: auto !important;
        overflow: hidden !important;
        margin-top: 30px !important; /* Increased from 10px to create more space below navbar */
        margin-bottom: 20px;
        display: flex !important;
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    body.chat-page {
        padding-top: 65px !important; /* Ensure enough space below navbar on small phones */
    }
    
    .chat-container {
        height: 350px !important;
        width: 92%;
        padding: 12px;
        padding-bottom: 70px !important;
        margin-top: 25px !important; /* Increased from previous values to prevent navbar overlap */
        box-sizing: border-box !important;
        position: relative !important;
        overflow: hidden !important;
    }
}
