:root {
    --deep-green: #0a5c36;
    --neon-green: #00ff88;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-dark: #0f172a;
    --accent-dark: #0d9488;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--card-bg);
    padding: 2rem 1rem;
    border-right: 1px solid rgba(0, 255, 136, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--dark-bg);
}

/* Navigation */
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
}

.mobile-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    justify-content: space-around;
    padding: 1rem;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    z-index: 1000;
}

.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* Headers */
.dashboard-header,
.dashboard-header-scientific,
.plant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1,
.dashboard-title {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.dashboard-title {
    background: linear-gradient(135deg, var(--text-primary), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.section-header h3 {
    margin: 0;
    color: var(--neon-green);
}

/* Grid Systems */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.scientific-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.content-grid,
.content-grid-scientific {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.placement-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.health-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.plant-characteristics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Cards */
.stat-card,
.content-card,
.plant-card,
.plant-card-scientific,
.scientific-card,
.info-card,
.care-category,
.location-item,
.indicator-card,
.characteristic-card,
.recommendation-card,
.placement-card,
.scientific-tip,
.empty-state-scientific,
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.stat-card:hover,
.plant-card:hover,
.plant-card-scientific:hover,
.scientific-card:hover,
.info-card:hover,
.glass-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.scientific-card::before,
.plant-card-scientific::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--deep-green), var(--neon-green));
}

.plant-card-scientific::before {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.5), transparent);
}

/* Special Card Variants */
.scientific-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    position: relative;
    overflow: hidden;
}

.scientific-card.mobile-optimized {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.scientific-tip {
    background: linear-gradient(135deg, rgba(0,255,136,0.05), rgba(0,170,255,0.05));
    border: 1px solid rgba(0,255,136,0.2);
    position: relative;
    overflow: hidden;
}

.scientific-tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-green), #00aaff);
}

.recommendation-card {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
}

.placement-card {
    background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(0,170,255,0.1));
    border: 1px solid rgba(0,255,136,0.3);
}

.characteristic-card.family {
    background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(0,255,136,0.05));
    border-color: rgba(0,255,136,0.2);
}

.characteristic-card.type {
    background: linear-gradient(135deg, rgba(0,170,255,0.1), rgba(0,170,255,0.05));
    border-color: rgba(0,170,255,0.2);
}

.indicator-card.positive { border-left: 4px solid #00ff88; }
.indicator-card.warning { border-left: 4px solid #ffaa00; }
.indicator-card.negative { border-left: 4px solid #ff4444; }

/* Enhanced Glass Card Styles */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.glass-card.upload-area {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 2px dashed rgba(0, 255, 136, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2rem; /* Reduced from 3rem */
}

.glass-card.upload-area:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.05);
}

/* Icons */
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(0,255,136,0.1);
}

.scientific-card .stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.scientific-card.mobile-optimized .stat-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    flex-shrink: 0;
    border-radius: 50%;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.2);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    background: rgba(0,255,136,0.2);
    transform: scale(1.05);
}

/* Content Groups */
.stat-content-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-info h3,
.stat-value {
    margin: 0;
    font-size: 1.8rem;
    color: var(--neon-green);
}

.stat-value {
    font-size: 1.3rem;
    line-height: 1;
}

.scientific-card:nth-child(6) .stat-value {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.health-score-large {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
}

.health-score-large.excellent { color: #00ff88; }
.health-score-large.good { color: #aaff00; }
.health-score-large.fair { color: #ffaa00; }
.health-score-large.poor { color: #ff4444; }

.stat-info p,
.stat-label {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-label {
    font-size: 0.7rem;
    margin: 0.2rem 0 0 0;
}

.scientific-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.stat-description {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0.1rem 0 0 0;
    opacity: 0.7;
}

.scientific-card .stat-description {
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Plant Elements */
.plant-image,
.plant-image-large,
.plant-image-scientific {
    position: relative;
    margin-bottom: 1rem;
}

.plant-image img,
.plant-image-scientific img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.plant-image-large img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.plant-placeholder {
    width: 100%;
    height: 120px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.plant-health,
.plant-health-scientific {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.plant-health-scientific {
    padding: 0.3rem 0.6rem;
}

.plant-info h4,
.plant-info-scientific h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.plant-info-scientific h4 {
    font-size: 1rem;
}

.plant-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn,
.btn-action,
.btn-scientific {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
}

.btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--deep-green), var(--neon-green));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.btn-action,
.btn-scientific {
    flex: 1;
}

.btn-action:hover,
.btn-scientific:hover {
    background: rgba(0, 255, 136, 0.2);
    color: var(--neon-green);
}

.btn-scientific {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    font-family: monospace;
}

.btn-scientific:hover {
    border-color: rgba(0,255,136,0.3);
}

.btn-danger,
.btn-scientific-danger:hover {
    background: rgba(255, 68, 68, 0.1);
}

.btn-danger:hover,
.btn-scientific-danger:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

.btn-scientific-danger:hover {
    border-color: rgba(255,68,68,0.3);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: var(--neon-green);
    background: rgba(0,255,136,0.1);
}

/* Action Groups */
.plant-actions,
.plant-actions-scientific {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.plant-actions-scientific {
    display: flex;
    gap: 0.5rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(0, 255, 136, 0.3);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 255, 136, 0.05);
}

.upload-area:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
}

/* Enhanced Upload Area - REDUCED HEIGHT */
.upload-area.enhanced {
    padding: 2rem; /* Reduced from 3rem */
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 2px dashed rgba(0, 255, 136, 0.3);
}

.upload-area.enhanced:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-2px);
}

/* Health Elements */
.health-distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.health-range {
    margin-bottom: 0.5rem;
}

.health-range-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.health-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Lists */
.issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.issue-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.issue-list li:last-child {
    border-bottom: none;
}

/* Empty States */
.empty-state,
.empty-state-scientific {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state-scientific {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.empty-state h3,
.empty-state-scientific h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.empty-state-scientific .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Tip Elements */
.quick-tip {
    animation: fadeInUp 0.5s ease-out;
}

.tip-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.tip-card:hover {
    transform: translateX(5px);
    border-left-color: var(--neon-green);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tip-icon {
    font-size: 1.5rem;
    background: rgba(0,255,136,0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.tip-category {
    background: linear-gradient(135deg, var(--deep-green), var(--neon-green));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

/* Analysis Meta */
.analysis-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Chatbot Styles */
.chat-message {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    max-width: 80%;
    align-self: flex-start;
}

.chat-message p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px 8px 8px 0;
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.user-message {
    background: rgba(0, 170, 255, 0.2);
    border-radius: 8px 8px 0 8px;
    color: var(--text-primary);
    border: 1px solid rgba(0, 170, 255, 0.3);
    align-self: flex-end;
    text-align: right;
}

.bot-typing {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    font-style: italic;
}

#plant-chat-log {
    display: flex;
    flex-direction: column-reverse;
}

/* Pure CSS Icons */
.css-icon-base {
    display: inline-block;
    width: 1em;
    height: 1em;
    position: relative;
    top: 0.125em;
    margin-right: 0.5rem;
}

.sidebar-nav a .css-icon-base {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.health-icon-center {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    position: absolute;
    border-radius: 50%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Form Styles */
form { width: 100%; }
input, select, textarea { font-family: inherit; }

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Enhanced Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,255,136,0.3);
    box-shadow: 0 10px 30px rgba(0,255,136,0.1);
}

.feature-card .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(0,255,136,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(0,255,136,0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-container {
    background: rgba(0,255,136,0.2);
    transform: scale(1.1);
}

/* REDUCED FONT SIZE FOR FEATURE TITLES */
.feature-card h3 {
    font-size: 17px; /* Reduced from 1.3rem to 17px */
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Guide List Styles */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.guide-list li:last-child {
    border-bottom: none;
}

.guide-list .icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0,255,136,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--neon-green);
}

.guide-list .content {
    flex: 1;
}

.guide-list strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.guide-list span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .scientific-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-grid,
    .content-grid-scientific {
        grid-template-columns: 1fr;
    }
    
    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .scientific-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .scientific-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plants-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-bottom: 5rem;
    }
    
    .content-grid,
    .content-grid-scientific {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scientific-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .plants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .dashboard-header,
    .dashboard-header-scientific,
    .plant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .plant-header {
        text-align: center;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .info-grid,
    .care-grid,
    .placement-locations,
    .plant-characteristics {
        grid-template-columns: 1fr;
    }
    
    .analysis-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .plant-actions,
    .plant-actions-scientific {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card .icon-container {
        width: 60px;
        height: 60px;
    }
    
    .feature-card h3 {
        font-size: 16px; /* Slightly smaller on mobile */
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .scientific-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .plants-grid {
        grid-template-columns: 1fr;
    }
    
    .plant-card {
        text-align: center;
    }
    
    .main-content {
        padding: 1rem;
        padding-bottom: 5rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-area.enhanced {
        padding: 1.5rem; /* Further reduced on mobile */
    }
    
    .feature-card h3 {
        font-size: 15px; /* Smallest on mobile */
    }
}

/* Additional Styles from analyze.php */
.upload-area.active-drag {
    border-color: var(--neon-green) !important;
    background-color: rgba(0, 255, 136, 0.15) !important;
    transform: scale(1.02);
}

.shadow-neon-lg {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.shadow-neon-sm {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.bg-gradient-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.bg-gradient-upload {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.group:hover .group-hover\:text-primary-neon {
    color: var(--neon-green);
}

.group:hover .group-hover\:bg-primary-neon\/20 {
    background: rgba(0,255,136,0.2);
}

/* Enhanced Chat Styles */
#plant-chat-log {
    display: flex;
    flex-direction: column;
    height: 320px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#plant-chat-log::-webkit-scrollbar {
    width: 6px;
}

#plant-chat-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#plant-chat-log::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

#plant-chat-log::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Chat input enhancements */
#chat-input {
    transition: all 0.3s ease;
}

#chat-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

/* Send button animations */
#send-chat {
    transition: all 0.3s ease;
}

#send-chat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

#send-chat:active {
    transform: translateY(0);
}

/* Typing animation */
@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.bot-typing p::after {
    content: '...';
    animation: typing 1.5s infinite;
}

/* Share link container animations */
#share-link-container {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

