body {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.logo {
    height: 40px;
    margin: 20px 0;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

/* Add margin to cards section */
.row.justify-content-center.g-4.mb-5 {
    margin-left: 8%;
    margin-right: 8%;
}

.card {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-color: #53535321;
    border-width: 2px;
    border-style: solid;
    padding: 20px;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-4px);
}

.icon-container {
    font-size: 1.875rem;
    margin-bottom: 11px;
    color: #2E7D32;
}

.card-title {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.question-counter {
    margin-top: 5px;
    text-align: center;
    position: relative;
}

.counter-number {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2E7D32;
    margin-bottom: 2px;
    line-height: 1.2;
}



.card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.card.disabled .counter-number {
    color: #999;
}

.score {
    font-size: 1.125rem;
    font-weight: bold;
    color: #2E7D32;
}

/* Chat Container Styles */
.col-md-8 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 15px;
    border-color: #53535321;
    border-width: 2px;
    border-style: solid;
    background: white;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-messages.visible {
    display: block;
    opacity: 1;
}

.message {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: messageAppear 0.3s ease forwards;
}

.message-content {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-radius: 15px;
    max-width: 85%;
    word-wrap: break-word;
}

.message-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Improved formatting for message content */
.message-content p strong {
    font-weight: 700;
    color: inherit;
}

/* Reduced spacing for paragraphs and bullet points */
.message-content p br {
    display: block;
    margin: 4px 0;
}

/* Minimal spacing for bullet points */
.message-content p br + br {
    margin-top: 6px;
}

/* Style for bullet points */
.message-content p br + • {
    margin-left: 0;
    display: inline-block;
}

.bot-message .message-content {
    background-color: #f0f8f0;
    margin-right: auto;
}

.user-message .message-content {
    background-color: #2E7D32;
    color: white;
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-icon {
    margin: 5px 10px;
    color: #2E7D32;
    flex-shrink: 0;
}

.user-message .message-icon {
    color: white;
}

.chat-input-container {
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    padding: 10px;
    border-color: #53535321;
    border-width: 1px;
    border-style: solid;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chat-input-container.question-loaded {
    border-color: #2E7D32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-input-container.question-loaded.glow-finished {
    border-color: #2E7D32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-input-container input,
.chat-input-container .chat-textarea {
    border: none;
    border-radius: 20px;
    padding: 15px 60px 15px 20px;
    font-size: 1rem;
    width: 100%;
    resize: none;
    overflow-y: auto;
    min-height: 50px;
    max-height: 120px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chat-input-container input:focus,
.chat-input-container .chat-textarea:focus {
    outline: none;
    box-shadow: none;
}

/* Mobile-specific textarea styling */
@media (max-width: 768px) {
    .chat-input-container .chat-textarea {
        min-height: 48px; /* 2 lines of text (24px * 2) */
        max-height: 90px;
        font-size: 1.1rem;
        line-height: 1.3;
        padding: 5px 60px 12px 15px;
        resize: none;
        overflow-y: auto;
        word-wrap: break-word;
        white-space: pre-wrap;
        overflow-wrap: break-word;
    }
    
    /* Ensure the textarea shows 2 lines by default on mobile */
    .chat-input-container .chat-textarea:not(:focus) {
        height: 48px;
    }
}

.send-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2E7D32;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-button:hover {
    background-color: #1B5E20;
}

/* Custom colors for specific icons */
.fa-seedling {
    color: #33691E;
}

.fa-leaf {
    color: #2E7D32;
}

.fa-tractor {
    color: #1B5E20;
}

.fa-hand-holding-dollar {
    color: #2E7D32;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #2E7D32;
    border-radius: 4px;
}

/* Animations */
@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Cards Styles */
.mobile-cards {
    display: none;
    padding: 0 5%;
    margin-bottom: 5px;
}

.mobile-cards-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.cards-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #2E7D32 #f1f1f1;
    padding-bottom: 15px;
    margin-bottom: 5px;
    touch-action: none;
}

.cards-scroll-container::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.cards-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cards-scroll-container::-webkit-scrollbar-thumb {
    background: #2E7D32;
    border-radius: 4px;
}

.mobile-cards .d-flex {
    gap: 2px;
    min-width: min-content;
}

.mobile-cards .card {
    margin: 0 5px;
    min-height: 56.7px; /* 10% smaller than 63px */
    aspect-ratio: 1;
    width: calc(((100vw - 10% - 16px) / 2) * 0.63); /* 10% smaller than 0.7 */
    flex: 0 0 auto;
}

.mobile-cards .icon-container {
    font-size: 1.26rem; /* 10% smaller than 1.4rem */
    margin-bottom: 3.6px; /* 10% smaller than 4px */
}

.mobile-carousel-arrow {
    background-color: #2E7D32;
    color: white;
    border: 2px solid #1B5E20;
    border-radius: 50%;
    width: 34px; /* 15% smaller than 40px */
    height: 34px; /* 15% smaller than 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    flex-shrink: 0;
    position: relative;
    min-width: 34px; /* 15% smaller than 40px */
    min-height: 34px; /* 15% smaller than 40px */
}

.mobile-carousel-arrow:hover {
    background-color: #1B5E20;
    transform: scale(1.1);
}

.mobile-carousel-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mobile-carousel-arrow i {
    font-size: 0.9rem;
}

/* Hide desktop cards and show mobile cards */
@media (max-width: 768px) {
    .desktop-cards {
        display: none;
    }

    .mobile-cards {
        display: block;
    }
    
    /* Position chat input at bottom of viewport on mobile */
    .chat-input-container {
        position: fixed;
        bottom: 15px;
        left: 5px;
        right: 5px;
        margin: 0;
        border-radius: 25px;
        z-index: 1000;
        background: white;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Add bottom padding to prevent content from being hidden behind fixed input */
    .container-fluid {
        padding-bottom: 80px;
    }
    
    .question-counter {
        margin-top: 4px;
    }
    
    .counter-number {
        font-size: 0.95rem;
    }
    
    /* Ensure scrollbar is always visible on mobile */
    .cards-scroll-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .cards-scroll-container::-webkit-scrollbar {
        height: 8px;
        display: block !important;
    }
    
    /* Mobile carousel adjustments */
    .mobile-cards-container {
        gap: 5px;
    }
    
    .mobile-carousel-arrow {
        width: 25.5px; /* 15% smaller than 30px */
        height: 25.5px; /* 15% smaller than 30px */
    }
    
    .mobile-carousel-arrow i {
        font-size: 0.68rem; /* 15% smaller than 0.8rem */
    }
}

/* Desktop override - restore original chat input positioning for larger screens */
@media (min-width: 769px) {
    .chat-input-container {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 50px;
        margin-bottom: 15px;
        border-radius: 25px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .container-fluid {
        padding-bottom: 0;
    }
    
    /* Reduce spacing between desktop cards and chat input */
    .desktop-cards {
        margin-bottom: 15px !important;
    }
}

/* Extra small devices adjustments */
@media (max-width: 375px) {
    .mobile-cards .card {
        min-height: 50.4px; /* 10% smaller than 56px */
    }

    .mobile-cards .icon-container {
        font-size: 1.449rem; /* 10% smaller than 1.61rem */
        margin-bottom: 2.7px; /* 10% smaller than 3px */
    }

    .mobile-cards .card-title {
        font-size: 0.3465rem; /* 10% smaller than 0.385rem */
        margin-bottom: 1.8px; /* 10% smaller than 2px */
    }

    .mobile-cards .score {
        font-size: 0.378rem; /* 10% smaller than 0.42rem */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 8px;
        width: 23%;
        flex: 0 0 23%;
        max-width: 23%;
        padding: 0 4px;
    }
    
    .chat-messages {
        min-height: 300px;
        max-height: 500px;
        margin: 15px;
    }

    .message-content {
        max-width: 90%;
        padding: 12px 15px;
    }

    .logo {
        height: 48px;
        margin: 5px 0;
    }

    .card {
        padding: 8px;
        min-height: 90px;
        aspect-ratio: 1;
    }

    .icon-container {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .card-title {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }

    .score {
        font-size: 0.85rem;
    }

    .row.justify-content-center.g-4.mb-5 {
        margin-left: 2%;
        margin-right: 2%;
    }
}

/* Extra small devices (phones, 375px and down) */
@media (max-width: 375px) {
    .col-md-3 {
        width: 22%;
        flex: 0 0 22%;
        max-width: 22%;
        padding: 0 2px;
        margin-bottom: 6px;
    }

    .card {
        padding: 6px;
        min-height: 70px;
    }

    .icon-container {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    .card-title {
        font-size: 0.55rem;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .score {
        font-size: 0.75rem;
    }

    .row.justify-content-center.g-4.mb-5 {
        margin-left: 1%;
        margin-right: 1%;
    }

    .logo {
        height: 40px;
        margin: 24px 0;
    }

    .chat-messages {
        margin: 8px;
        min-height: 35vh;
        max-height: 45vh;
        padding: 12px;
    }

    .message-content {
        padding: 10px 12px;
    }

    .message-content p {
        font-size: 0.9rem;
    }
    
    /* Mobile carousel adjustments for smaller screens */
    .mobile-cards-container {
        gap: 3px;
    }
    
    .mobile-carousel-arrow {
        width: 23.8px; /* 15% smaller than 28px */
        height: 23.8px; /* 15% smaller than 28px */
    }
    
    .mobile-carousel-arrow i {
        font-size: 0.595rem; /* 15% smaller than 0.7rem */
    }
} 
.crop-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    position: relative;
    width: 100%;
}

.crops-container {
    overflow: hidden;
    width: 80%;
    position: relative;
    box-sizing: border-box;
    touch-action: none;
}

.crops-slider {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
    will-change: transform;
    touch-action: none;
}

.crop-btn {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
    padding: 8px 10px;
    margin: 5px;
    background-color: white;
    border: 2px solid #53535321;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.crop-btn.selected {
    background-color: #f0f8f0;
    border-color: #2E7D32;
    color: #2E7D32;
    font-weight: bold;
}

.carousel-arrow {
    background-color: white;
    border: 2px solid #53535321;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2E7D32;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: #f0f8f0;
    border-color: #2E7D32;
}

.carousel-arrow.disabled {
    opacity: 0.5;
    cursor: default;
}

.left-arrow {
    margin-right: 10px;
}

.right-arrow {
    margin-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .crop-btn {
        width: 110px;
        font-size: 0.85rem;
        font-weight: bold;
        color: #1B5E20;
    }
}

@media (max-width: 768px) {
    .crops-container {
        width: 75%;
        touch-action: none;
    }
    
    .crop-btn {
        width: 100px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

@media (max-width: 576px) {
    .crops-container {
        width: 70%;
        touch-action: none;
    }
    
    .crop-btn {
        width: 85px;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
    }
}

/* Extra small mobile screens (430px and below) */
@media (max-width: 430px) {
    .crops-container {
        width: calc(90px * 2 + 10px);
        touch-action: none;
    }
    
    .crop-btn {
        width: 85px;
        margin: 5px 5px;
        font-size: 0.7rem;
        padding: 5px 6px;
    }
    
    .crops-slider {
        justify-content: flex-start;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* Add these styles to the existing CSS file */

/* Hamburger Menu Styles */
.hamburger-menu-button {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    border: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.hamburger-menu-button:hover {
    background-color: #f7f7f7;
}

.hamburger-icon {
    width: 18px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #2E7D32;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Sidebar */
.hamburger-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background-color: white;
    z-index: 1500;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hamburger-sidebar.open {
    transform: translateX(0);
}

.hamburger-sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-logo {
    height: 30px;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-sidebar:hover {
    background-color: #f0f0f0;
}

.hamburger-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.sidebar-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    padding: 0 8px;
}

.sidebar-menu-link,
.sign-off-button {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.sidebar-menu-link:hover,
.sign-off-button:hover {
    background-color: #f0f8f0;
}

.sidebar-menu-link.active {
    background-color: #f0f8f0;
    color: #2E7D32;
    font-weight: 600;
}

.sidebar-menu-link i,
.sign-off-button i {
    margin-right: 12px;
    width: 16px;
    color: #2E7D32;
}

.sign-off-button {
    color: #d93025;
}

.sign-off-button i {
    color: #d93025;
}

/* Overlay for hamburger menu */
.hamburger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hamburger-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Error message styles */
.error-message .message-content {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.error-message .message-icon {
    color: #f44336;
}

/* Disabled chat input styles */
.chat-input-container input:disabled,
.chat-input-container .chat-textarea:disabled {
    background-color: #ffffff;
    color: #ffffff;
    cursor: not-allowed;
}

.chat-input-container .chat-textarea:disabled::placeholder {
    color: #ffffff;
}

/* Ensure textarea is white when placeholder is empty during loading */
.chat-input-container .chat-textarea[placeholder=""] {
    color: #ffffff;
}

.send-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.send-button:disabled:hover {
    background-color: #ccc;
}

/* Adjust logo section for hamburger menu */
@media (max-width: 768px) {
    .hamburger-menu-button {
        top: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 375px) {
    .hamburger-menu-button {
        top: 10px;
        left: 10px;
        width: 32px;
        height: 32px;
    }
    
    .hamburger-sidebar {
        width: 240px;
    }
}

/* Mobile Status Indicator */
.mobile-status-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 20px;
    margin: 10px auto;
    width: fit-content;
    font-size: 0.85rem;
    color: #2E7D32;
    font-weight: 500;
    visibility: hidden;
    opacity: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2E7D32;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .mobile-status-indicator {
        display: flex;
        visibility: hidden;
        opacity: 0;
    }
}

/* Enhanced mobile touch targets */
@media (max-width: 768px) {
    .card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .crop-btn {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .send-button {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    /* Improved mobile scrolling */
    .chat-messages {
        scroll-behavior: smooth;
        min-height: 40vh;
        max-height: 50vh;
        margin: 10px;
        padding: 15px;
        border-radius: 12px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }
    
    .cards-scroll-container {
        scroll-behavior: smooth;
        touch-action: none;
    }
    
    /* Better mobile typography */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Mobile-specific animations */
    .card {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    
    .card:active {
        transform: scale(0.96);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Improved mobile input */
    .chat-input-container input {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 20px;
    }
    
    .chat-input-container input::-webkit-search-decoration,
    .chat-input-container input::-webkit-search-cancel-button,
    .chat-input-container input::-webkit-search-results-button,
    .chat-input-container input::-webkit-search-results-decoration {
        display: none;
    }
}

/* Mobile landscape optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-status-indicator {
        display: none;
    }
    
    .logo {
        height: 40px;
        margin: 10px 0;
    }
    
    .container-fluid {
        padding-top: 5px;
    }
    
    .chat-messages {
        min-height: 30vh;
        max-height: 40vh;
        margin: 8px;
        padding: 12px;
    }
    
    .chat-input-container {
        bottom: 10px;
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    .card,
    .crop-btn,
    .send-button {
        will-change: transform;
    }
    
    .chat-messages {
        will-change: scroll-position;
    }
    
    /* Reduce motion for better performance */
    .card:hover {
        transform: none;
    }
    
    .crop-btn:hover {
        transform: none;
    }
}

/* Mobile accessibility improvements */
@media (max-width: 768px) {
    .card:focus-visible,
    .crop-btn:focus-visible,
    .send-button:focus-visible {
        outline: 2px solid #2E7D32;
        outline-offset: 2px;
    }
    
    /* Better contrast for mobile */
    .message-content {
        color: inherit;
    }
    
    .bot-message .message-content {
        color: #2c3e50;
    }
    
    .user-message .message-content {
        color: white;
    }
}

/* Focus indicators for keyboard navigation */
.card:focus,
.crop-btn:focus,
.send-button:focus,
.hamburger-menu-button:focus {
    outline: 2px solid #2E7D32;
    outline-offset: 2px;
}

/* Loading states for better UX */
.send-button.loading {
    background-color: #2E7D32 !important;
    pointer-events: none;
}

.send-button.loading .fas.fa-arrow-up {
    display: none;
}

.send-button.loading .button-loading {
    display: flex !important;
}

/* Improved scrollbar for mobile */
.cards-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.cards-scroll-container::-webkit-scrollbar-thumb {
    background: #2E7D32;
    border-radius: 3px;
}

.cards-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

/* Touch feedback improvements */
.card:active,
.crop-btn:active,
.send-button:active {
    transform: scale(0.95);
}

/* Better visual hierarchy for mobile */
.question-counter {
    margin-top: 6px;
}

.counter-number {
    font-size: 1rem;
    font-weight: 600;
    color: #2E7D32;
}

/* Enhanced crop carousel for mobile */
@media (max-width: 768px) {
    .crops-container {
        width: 85%;
    }
    
    .crop-btn {
        margin: 0 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #e9ecef;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 576px) {
    .crops-container {
        width: 80%;
    }
    
    .crop-btn {
        margin: 0 2px;
        max-width: 100px;
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 430px) {
    .crops-container {
        width: 75%;
    }
    
    .crop-btn {
        margin: 0 2px;
        max-width: 80px;
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .crops-slider {
        gap: 4px;
    }
    
    .carousel-arrow {
        width: 28px;
        height: 28px;
    }
} 

/* Small Logo Icon for Mobile */
.logo-icon-link {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.logo-icon {
    height: 32px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-icon.visible {
    opacity: 1;
    transform: scale(1);
}

/* Mobile logo switching */
@media (max-width: 768px) {
    .logo-icon-link {
        display: block;
    }
    
    /* Show small logo after first message */
    .logo-icon.visible {
        opacity: 1;
        transform: scale(1);
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .logo-icon {
        top: 10px;
        right: 10px;
        height: 28px;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .logo-icon {
        height: 28px;
        top: 12px;
        right: 12px;
    }
}

/* Logo transition improvements */
.logo {
    transition: all 0.3s ease;
}

/* Hide entire logo section after first message */
#logoSection {
    transition: all 0.3s ease;
}

#logoSection.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: none;
} 

/* Hide crop carousel section on mobile after first message */
#cropCarouselSection {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    #cropCarouselSection.hidden {
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
        height: 0;
        margin: 0;
        overflow: hidden;
    }
} 



