/* style.css */

:root {
    --primary-color: #1b4d22;
    --primary-hover: #143a19;
    --accent-color: #2e6b40;
    --gold-color: #c5a02e;
    --gold-bg: rgba(197, 160, 46, 0.1);
    --bg-color: #f6f8f5;
    --card-bg: rgba(255, 255, 255, 0.88);
    --border-color: rgba(46, 107, 64, 0.12);
    --text-primary: #2c3e2b;
    --text-secondary: #5a6e59;
    --success-color: #43a047;
    --shadow: 0 8px 32px 0 rgba(27, 77, 34, 0.05);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background blurs */
.circle-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
}

.cb-1 {
    width: 450px;
    height: 450px;
    background-color: #a5d6a7;
    top: -120px;
    right: -100px;
}

.cb-2 {
    width: 500px;
    height: 500px;
    background-color: #ffe082;
    bottom: -150px;
    left: -150px;
}

/* Layout Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 77, 34, 0.2);
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #f0f4f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(46, 107, 64, 0.05);
    transform: translateY(-2px);
}

.btn-google {
    border-color: #dadce0;
    color: #3c4043;
    width: 100%;
    padding: 12px;
    background-color: white;
    margin-top: 15px;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #d2e3fc;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-md {
    padding: 12px 28px;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 45px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

/* Phone Mockup */
.mockup-showcase {
    max-width: 450px;
    margin: 0 auto;
    perspective: 1000px;
}

.mockup-container {
    background: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 4px solid #222;
}

.mockup-screen {
    background: #efebe9;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3/4;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    color: #3e2723;
    font-size: 1.1rem;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 8px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    flex-grow: 1;
}

.mock-cell {
    background: #d7ccc8;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Features */
.features-section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    padding: 48px;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 12px 40px rgba(27, 77, 34, 0.12);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Search and Filters Card */
.search-filter-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 48px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background-color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(46, 107, 64, 0.15);
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.filter-select {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: white;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Public Gardens Grid results */
.public-gardens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.garden-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.garden-summary-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.summary-header h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.summary-owner {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.summary-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 16px;
}

.summary-stat-item {
    text-align: center;
}

.summary-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
}

.summary-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-modal {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 36px 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    color: #2c3e2b;
}

.auth-modal select,
.auth-modal select option,
.auth-modal input,
.auth-modal label,
.auth-modal p,
.auth-modal h2,
.auth-modal h3,
.auth-modal span {
    color: #2c3e2b !important;
}

.auth-modal select,
.auth-modal input {
    background-color: #ffffff !important;
    border: 1px solid rgba(46, 107, 64, 0.3) !important;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #eee;
    z-index: 1;
}

.divider span {
    background-color: white;
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-group input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-color);
}

.modal-footer-text {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 16px;
}

.modal-footer-text a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

/* User Account Profile Display in Header */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.dropdown-selector {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    outline: none;
    color: var(--primary-color);
    background-color: white;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 36px 0 rgba(27, 77, 34, 0.08);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.stat-icon-wrapper.savings {
    background-color: var(--gold-bg);
    color: var(--gold-color);
}

.stat-icon-wrapper.harvests {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.stat-icon-wrapper.plantings {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.stat-icon-wrapper.efficiency {
    background-color: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Display Content Grid wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.display-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.display-body {
    padding: 24px;
    flex-grow: 1;
}

.display-body.scrollable {
    max-height: 480px;
    overflow-y: auto;
}

/* Garden Grid representation styling */
.garden-grid {
    display: grid;
    gap: 12px;
    width: 100%;
    aspect-ratio: 3/2;
    margin: 0 auto;
}

.grid-cell {
    background: rgba(27, 77, 34, 0.03);
    border: 2px dashed rgba(27, 77, 34, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    padding: 10px;
}

.grid-cell.occupied {
    background: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(27, 77, 34, 0.04);
}

.grid-cell.occupied:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(27, 77, 34, 0.08);
}

.cell-emoji {
    font-size: 2rem;
    margin-bottom: 4px;
}

.cell-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.cell-status {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Plant Variety List details side panel */
.variety-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variety-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: white;
    transition: var(--transition);
}

.variety-item:hover {
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.variety-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.variety-info {
    flex-grow: 1;
}

.variety-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.variety-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.variety-price {
    font-weight: 600;
    color: var(--gold-color);
    font-size: 0.85rem;
}

/* Footer styling */
footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: auto;
}

/* Responsiveness */
@media (max-width: 820px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-banner {
        padding: 30px 20px;
    }
    
    .cta-banner h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Distinct Upvote Card */
.stat-card.upvote-card {
    background: linear-gradient(135deg, #fff2f6, #ffebee);
    border: 1px solid rgba(233, 30, 99, 0.22);
    box-shadow: 0 8px 32px 0 rgba(233, 30, 99, 0.08);
}
.stat-card.upvote-card:hover {
    border-color: #e91e63;
    transform: translateY(-4px);
    box-shadow: 0 12px 36px 0 rgba(233, 30, 99, 0.14);
}

/* Floating Mascot Helper */
.mascot-helper-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.mascot-float-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(27, 77, 34, 0.15);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mascot-float-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(27, 77, 34, 0.25);
    border-color: var(--primary-color);
}

.mascot-float-btn img {
    width: 110%;
    height: 110%;
    object-fit: cover;
}

/* Chat Window */
.mascot-bubble {
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mascot-chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    object-fit: cover;
}

.mascot-chat-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.mascot-chat-header p {
    font-size: 0.7rem;
    opacity: 0.85;
}

.chat-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.mascot-chat-body {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #f9fbf9;
}

.chat-message {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.4;
}

.chat-message.bot {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mascot-chat-input-row {
    padding: 10px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    background-color: white;
}

.mascot-chat-input-row input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}

.mascot-chat-input-row input:focus {
    border-color: var(--accent-color);
}

.mascot-chat-input-row button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mascot-chat-input-row button:hover {
    background-color: var(--primary-hover);
}

/* Toggle Switch Settings */
.switch-toggle input:checked + .slider-toggle {
    background-color: var(--primary-color);
}

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

.switch-toggle input:checked + .slider-toggle:before {
    transform: translateX(20px);
}

@keyframes floatGnome {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Ticker scroll animation */
@keyframes ticker-scroll {
    0% { transform: translateX(50%); }
    100% { transform: translateX(-100%); }
}

.top-voted-ticker-wrapper {
    box-sizing: border-box;
}

.ticker-content {
    display: inline-block;
    padding-left: 20px;
    font-weight: 600;
}

/* Premium Toast Feedback Notifications */
.toast-msg {
    background: rgba(46, 125, 50, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-fade-in 0.3s ease-out forwards;
    backdrop-filter: blur(8px);
}
@keyframes toast-fade-in {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.toast-msg.hide {
    animation: toast-fade-out 0.3s ease-in forwards;
}
@keyframes toast-fade-out {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Drag & Drop Visual States */
.grid-cell.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    border: 2px dashed var(--accent-color) !important;
}
.grid-cell.drag-hover {
    background: rgba(76, 175, 80, 0.25) !important;
    border: 2px dashed #4caf50 !important;
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

/* Ensure Drag & Drop targets grid-cell atomicity */
.grid-cell * {
    pointer-events: none;
}

/* ==========================================
   PREMIUM DARK THEME & LAYOUT OVERRIDES 
   ========================================== */

body.dark-theme {
    --bg-color: #12161A;
    --card-bg: rgba(26, 32, 38, 0.85);
    --border-color: rgba(76, 175, 80, 0.18);
    --text-primary: #ECEFF1;
    --text-secondary: #90A4AE;
    --primary-color: #4CAF50;
    --primary-hover: #388E3C;
    --accent-color: #81C784;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

body.dark-theme header {
    background-color: rgba(18, 22, 26, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

body.dark-theme .logo {
    color: var(--primary-color);
}

body.dark-theme .logo img {
    border-color: var(--primary-color);
}

body.dark-theme .nav-links a {
    color: var(--text-secondary);
}

body.dark-theme .nav-links a:hover, body.dark-theme .nav-links a.active {
    color: var(--primary-color);
}

body.dark-theme .dashboard-welcome {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.25), rgba(76, 175, 80, 0.05));
    border: 1px solid var(--border-color);
}

body.dark-theme .stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

body.dark-theme .stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

body.dark-theme .display-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

body.dark-theme .grid-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
}

body.dark-theme .grid-cell.occupied {
    background: rgba(26, 32, 38, 0.95);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

body.dark-theme .grid-cell.occupied:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.2);
}

body.dark-theme .variety-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-theme .variety-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
}

/* Tab Bar Styling */
.dashboard-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    padding-bottom: 4px;
}

.dash-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px 8px 0 0;
}

.dash-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.dash-tab.active {
    color: var(--primary-color);
    background: rgba(76, 175, 80, 0.08);
}

.dash-tab.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Floating Chatbot Widget styles */
.gnome-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
}

.gnome-chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.gnome-chat-trigger:hover {
    transform: scale(1.08);
    background: var(--primary-hover);
}

.gnome-chat-trigger img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.gnome-chat-trigger .online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #4caf50;
    border: 2.5px solid #12161A;
}

.gnome-chat-panel {
    width: 360px;
    height: 480px;
    background: #1C2127;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 75px;
    right: 0;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
}

.gnome-chat-panel.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-panel-header {
    background: #252B33;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
}

.chat-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.chat-header-status {
    font-size: 0.7rem;
    color: #4caf50;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
}

.chat-bubble.bot {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid #4CAF50;
    color: #ECEFF1;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.chat-bubble.user {
    background: #2D3540;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.chat-bubble-time {
    font-size: 0.65rem;
    color: #90A4AE;
    margin-top: 4px;
    text-align: right;
    display: block;
}

.chat-input-bar {
    padding: 12px;
    background: #181C21;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-bar input {
    flex: 1;
    background: #252B33;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 14px;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.chat-input-bar button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-input-bar button:hover {
    background: var(--primary-hover);
}

/* Web Analytics Tab Visuals */
.analytics-chart-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.donut-chart-container {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.savings-trend-container {
    flex: 1.5;
    min-width: 320px;
    padding: 20px;
}
