/* Container Farm - Figma Professional Theme Variables */
:root {
    /* Figma Professional Colors - Teal + Amber */
    --primary-dark: var(--dark-teal, #134e4a);
    --primary-medium: var(--primary-teal, #0f766e);
    --primary-light: var(--light-teal, #14b8a6);
    --primary-lighter: var(--light-teal, #14b8a6);
    --primary-lightest: #a7f3d0;
    
    /* Amber Accent Colors */
    --accent-yellow: var(--accent-amber, #f59e0b);
    --accent-light-yellow: var(--light-amber, #fbbf24);
    
    /* Professional Background & Surface */
    --bg-color: var(--background-gray, #f9fafb);
    --card-bg-color: var(--bg-primary, #ffffff);
    
    /* Professional Text Colors */
    --text-color: var(--text-dark, #1f2937);
    --subtle-text-color: var(--text-light, #6b7280);
    --border-color: var(--border-gray, #d1d5db);
    
    /* Professional Status Colors */
    --red: var(--error-red, #dc2626);
    --yellow: var(--warning-amber, #f59e0b);
    --green: var(--success-emerald, #059669);
    --cyan: var(--light-teal, #14b8a6);
    
    /* Professional Shadows */
    --card-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(15, 118, 110, 0.12);
    
    /* Professional Gradients */
    --gradient-primary: linear-gradient(135deg, var(--dark-teal) 0%, var(--primary-teal) 50%, var(--light-teal) 100%);
    --gradient-ocean: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-teal) 100%);
    --gradient-accent: linear-gradient(135deg, var(--dark-amber) 0%, var(--accent-amber) 100%);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    padding-top: 70px; /* Account for sticky nav height */
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: all 0.3s ease;
}

.sticky-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 118, 110, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 46px; /* Total nav height will be 70px with padding */
}

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

.nav-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.nav-logo-main {
    height: 52px;
    width: auto;
    max-width: 200px;
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

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

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

.sticky-nav.scrolled .nav-logo {
    filter: none;
}

.sticky-nav.scrolled .nav-logo-main {
    filter: none;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sticky-nav.scrolled .nav-title {
    color: var(--text-color);
    text-shadow: none;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-planner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-teal);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}

.nav-planner-btn:hover {
    background: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
    color: white;
    text-decoration: none;
}

.nav-planner-btn svg {
    transition: transform 0.3s ease;
}

.nav-planner-btn:hover svg {
    transform: rotate(5deg);
}

/* Hero Section - Professional Teal Theme */
.hero {
    background: linear-gradient(
        135deg,
        rgba(15, 118, 110, 0.85),  /* Primary Teal */
        rgba(19, 78, 74, 0.9)      /* Dark Teal */
    ), url('images/farm-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1024px;
    padding: 80px 20px;
    text-align: center;
    margin: 0 auto;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.badge-icon {
    font-size: 16px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.1;
}

.text-accent {
    color: var(--accent-amber);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.feature-icon {
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-cta {
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 400px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-button {
    background: var(--accent-amber);
    color: #1f2937;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
    font-family: inherit;
}

.hero-button:hover {
    background: var(--dark-amber);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 20px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
}

.card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;  /* 稍微增加圆角 */
    padding: 24px;         /* 增加内边距 */
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-lightest);
}

h1, h2, h3 {
    color: var(--text-color);
    margin-top: 0;
    font-weight: 600;
}

h1 { 
    font-size: 20px; 
    text-align: center; 
    border: none; 
    margin-bottom: 12px;
}

h2 { 
    font-size: 18px; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 10px; 
    margin-bottom: 16px;
}

h3 { 
    font-size: 16px; 
    border: none; 
    padding-bottom: 4px; 
    margin-bottom: 12px; 
    color: var(--primary-medium);
}

.form-group { 
    margin-bottom: 14px; 
}

.form-group label { 
    display: block; 
    font-weight: 500; 
    margin-bottom: 6px; 
    font-size: 13px; 
    color: var(--subtle-text-color); 
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    font-size: 14px;
    transition: border-color 100ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { 
    border-color: var(--primary-light); 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.1); 
}

/* Gradient Buttons - 更现代化 */
.btn {
    background: var(--primary-teal);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
    font-family: inherit;
}

.btn:hover {
    background: var(--dark-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
}

.btn-accent {
    background: var(--accent-amber);
    color: #1f2937;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
    background: var(--dark-amber);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

.flex-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 8px 0; 
    border-bottom: 1px solid #f1f3f5; 
}

.flex-row:last-child { 
    border-bottom: none; 
}

.output-group { 
    margin-top: 20px; 
    padding: 14px; 
    background-color: var(--bg-color); 
    border-radius: 6px; 
}

.output-group .label { 
    font-weight: 500; 
    color: var(--subtle-text-color); 
    font-size: 13px; 
}

.output-group .value { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--primary-medium); 
}

.total-profit { 
    background-color: #d3f9d8; 
}

.total-profit .label, .total-profit .value { 
    color: var(--green); 
}

.total-profit .profit-margin { 
    font-size: 24px; 
}

.site-info p { 
    font-size: 14px; 
    margin: 4px 0; 
}

.map-container { 
    margin-top: 12px; 
    border-radius: 6px; 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container iframe { 
    width: 100%; 
    height: 50vh; 
    min-height: 400px;
    border: 0; 
}

.map-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: var(--subtle-text-color);
    background: var(--bg-color);
}

.address-input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.address-input-group input {
    flex: 1;
}

.address-input-group .btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 14px;
}

.farm-description {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.site-image { 
    width: 100%; 
    height: auto; 
    border-radius: 6px; 
    margin-top: 12px; 
}

.comparison-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 16px; 
}

.comparison-item { 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    padding: 12px; 
    text-align: center; 
    background-color: #fff; 
}

.comparison-item img { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 4px; 
    margin-bottom: 10px; 
    background-color: var(--bg-color); 
}

.comparison-item h4 { 
    margin: 8px 0 4px 0; 
    font-size: 15px; 
}

.comparison-item p { 
    font-size: 13px; 
    color: var(--subtle-text-color); 
}

/* Packaging Cards */
.packaging-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.packaging-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 41, 107, 0.08);
}

.packaging-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 41, 107, 0.15);
    border-color: var(--primary-light);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.packaging-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.chinese-name {
    color: var(--primary-medium);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 12px 0;
    opacity: 0.8;
}

.description {
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.material {
    color: var(--subtle-text-color);
    font-size: 0.8rem;
    margin: 0;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 6px;
    border-left: 3px solid var(--accent-yellow);
}

.description strong,
.material strong {
    color: var(--primary-medium);
}

.energy-legend { 
    display: flex; 
    gap: 16px; 
    margin-bottom: 12px; 
    font-size: 12px; 
    align-items: center; 
}

.legend-item { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

.legend-color { 
    width: 12px; 
    height: 12px; 
    border-radius: 3px; 
}

/* Time Rings Layout */
.time-rings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 20px 0;
}

.time-ring-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.season-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.season-icon {
    font-size: 24px;
}

.season-header label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-medium);
}

/* Time Ring Container */
.time-ring-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.time-ring {
    width: 312px;
    height: 312px;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 41, 107, 0.1));
}

/* Hour markers */
.hour-marker {
    stroke: var(--border-color);
    stroke-width: 1;
}

.hour-marker.major {
    stroke: var(--subtle-text-color);
    stroke-width: 2;
}

/* Hour labels */
.hour-label {
    fill: var(--subtle-text-color);
    font-size: 10px;
    font-weight: 500;
    text-anchor: middle;
    dominant-baseline: central;
}

/* TOU rate segments */
.tou-segment {
    fill: none;
    stroke-width: 24;
}

.tou-segment.off-peak {
    stroke: var(--green);
}

.tou-segment.mid-peak {
    stroke: var(--yellow);
}

.tou-segment.on-peak {
    stroke: var(--red);
}

/* Lighting arc */
#lighting-arc-summer,
#lighting-arc-winter {
    filter: drop-shadow(0 2px 4px rgba(253, 197, 0, 0.3));
}

/* Handle */
#handle-summer,
#handle-winter {
    transition: all 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(253, 197, 0, 0.4));
    rx: 8;
    ry: 8;
}

#handle-summer:hover,
#handle-winter:hover {
    r: 20;
    fill: var(--accent-light-yellow);
    cursor: grab;
}

#handle-summer:active,
#handle-winter:active {
    cursor: grabbing;
    fill: var(--accent-light-yellow);
}

.capex-item-group { 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    padding: 12px; 
    margin-bottom: 12px; 
    background: var(--bg-color); 
}

.capex-item-group h4 { 
    margin: 0 0 10px 0; 
    font-size: 15px; 
}

.capex-item-group .flex-row { 
    padding: 4px 0; 
    border: none; 
}

.capex-item-group .subtotal { 
    font-weight: 600; 
    font-size: 16px; 
}

/* Dropdown Select Styling */
.select-dropdown {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.select-dropdown:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 80, 157, 0.2);
}

.select-dropdown:hover {
    border-color: var(--primary-medium);
}

.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-row .select-dropdown {
    flex: 1;
}

.input-row input[type="number"] {
    flex: 2;
}

/* Worker Icons Styling */
.worker-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.worker-input-row input {
    width: 80px;
    flex: none;
}

.worker-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.worker-icon {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.worker-icon.active {
    fill: var(--accent-yellow);
}

.worker-icon.inactive {
    fill: #e0e0e0;
}

/* Footer - Simplified Style */
.footer {
    background: #dc2626;
    color: white;
    padding: 30px 20px;
    margin-top: 60px;
    max-height: 200px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-main {
    height: 50px;
    width: auto;
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.footer-brand-text h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Sales Channels Styling */
.sales-channels-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.channel-option {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.channel-option.active {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(0, 80, 157, 0.15);
}

.channel-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-color);
    cursor: pointer;
}

.channel-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    background: white;
    color: var(--primary-light);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.channel-toggle-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: scale(1.1);
}

.channel-toggle-btn.add {
    border-color: var(--green);
    color: var(--green);
}

.channel-toggle-btn.add:hover {
    background: var(--green);
    color: white;
}

.channel-toggle-btn.remove {
    border-color: var(--red);
    color: var(--red);
}

.channel-toggle-btn.remove:hover {
    background: var(--red);
    color: white;
}

.channel-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--primary-dark);
}

.channel-unit {
    margin: 0;
    font-size: 13px;
    color: var(--subtle-text-color);
    font-weight: 500;
}

.channel-inputs {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: white;
}

.channel-inputs .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.channel-inputs .form-group {
    margin-bottom: 0;
}

.channel-description {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--accent-yellow);
}

.channel-description p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.4;
}

.channel-description p:last-child {
    margin-bottom: 0;
}

.channel-description strong {
    color: var(--primary-medium);
}

/* Crop Yield Assessment Styling */
.yield-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.container-list {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.container-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.container-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(0, 80, 157, 0.1);
}

.container-left {
    flex: 1;
    min-width: 0;
}

.container-right {
    flex: 0 0 280px;
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
}

.container-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.container-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--primary-dark);
}

.container-icon {
    flex-shrink: 0;
}

.container-config {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Button Group Styling */
.button-group-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.button-group-section label {
    font-size: 12px;
    font-weight: 600;
    color: var(--subtle-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.btn-option {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    background: white;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-option:last-child {
    border-right: none;
}

.btn-option:hover {
    background: var(--bg-color);
}

.btn-option::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to right, var(--accent-yellow), var(--accent-light-yellow));
    transition: height 0.2s ease;
}

.btn-option.active {
    background: var(--primary-teal);
    color: white;
    font-weight: 600;
}

.btn-option.active::before {
    height: 3px;
}

/* Crop buttons with color indicator */
.button-group-section:last-child .btn-option.active {
    background: var(--crop-color, var(--primary-teal));
}

.crop-selection {
    margin-bottom: 12px;
}

.crop-selection label {
    font-size: 13px;
    font-weight: 500;
    color: var(--subtle-text-color);
    margin-bottom: 4px;
    display: block;
}

.crop-selection select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 6px;
}

.crop-description {
    font-size: 12px;
    color: var(--subtle-text-color);
    margin: 0;
    font-style: italic;
}

.yield-section {
    padding-top: 4px;
}

.yield-section label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--subtle-text-color);
    margin-bottom: 8px;
}

.yield-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.yield-input-group input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid var(--green);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--green);
    background: rgba(40, 167, 69, 0.05);
}

.yield-input-group input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.yield-unit-label {
    font-size: 13px;
    color: var(--subtle-text-color);
    font-weight: 500;
}

.yield-reference {
    font-size: 11px;
    color: var(--subtle-text-color);
    font-style: italic;
    padding: 4px 8px;
    background: var(--bg-color);
    border-radius: 4px;
}

.yield-summary {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--green);
}

.yield-summary h3 {
    margin: 0 0 16px 0;
    color: var(--primary-dark);
}

.yield-totals {
    display: grid;
    gap: 8px;
}

.yield-total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.yield-total-item:last-child {
    border-bottom: none;
}

.yield-total-item.grand-total {
    border-top: 2px solid var(--primary-light);
    padding-top: 12px;
    margin-top: 8px;
}

.crop-name {
    font-weight: 500;
}

.crop-total {
    font-weight: 600;
    color: var(--primary-medium);
}

/* Unit Toggle Styling */
.unit-toggle {
    display: flex;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unit-option {
    padding: 8px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    position: relative;
    min-width: 50px;
}

.unit-option:hover {
    background: var(--bg-color);
}

.unit-option.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 80, 157, 0.3);
}

.unit-option:first-child.active {
    border-radius: 25px 0 0 25px;
}

.unit-option:last-child.active {
    border-radius: 0 25px 25px 0;
}

/* Validation Error Styling */
.validation-error {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #c53030;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #e53e3e;
}

/* Bottom Controls */
.bottom-controls {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 30px;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

/* Depreciation Toggle */
.depreciation-toggle-container {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.toggle-label input[type="checkbox"] {
    appearance: none;
    width: 50px;
    height: 28px;
    background: #e0e0e0;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked {
    background: var(--primary-light);
}

.toggle-label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked::before {
    transform: translateX(22px);
}

.toggle-text {
    font-weight: 500;
    color: var(--primary-medium);
}

/* Send Report Button */
#send-report-btn {
    font-size: 16px;
    padding: 16px 32px;
    min-width: 250px;
    box-shadow: 0 6px 20px rgba(253, 197, 0, 0.4);
}

#send-report-btn:hover {
    box-shadow: 0 10px 30px rgba(253, 197, 0, 0.6);
    transform: translateY(-3px);
}

#send-report-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 20px rgba(253, 197, 0, 0.2);
}

/* Container Farm Planner Specific Styles */
.container-farm-planner {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    font-family: 'Montserrat', sans-serif;
}

/* Toolbar Styles */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg-color);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 41, 107, 0.1);
}

.toolbar-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 16px;
}

.toolbar-version {
    font-size: 12px;
    color: var(--subtle-text-color);
    opacity: 0.7;
}

.toolbar-divider {
    height: 24px;
    width: 1px;
    background: var(--border-color);
    margin: 0 8px;
}

.container-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container-btn.plant {
    background: var(--green);
    color: white;
}

.container-btn.plant:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

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

.container-btn.utility:hover {
    background: var(--primary-medium);
    transform: translateY(-1px);
}

.container-btn.office {
    background: var(--accent-yellow);
    color: var(--primary-dark);
}

.container-btn.office:hover {
    background: var(--accent-light-yellow);
    transform: translateY(-1px);
}

.toolbar-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--subtle-text-color);
}

.toolbar-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.toolbar-input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 80, 157, 0.2);
}

.toolbar-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--subtle-text-color);
}

.toolbar-checkbox input[type="checkbox"] {
    margin: 0;
}

.toolbar-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-slider {
    width: 100px;
}

.toolbar-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: var(--text-color);
}

.toolbar-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg-color);
}

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

.connection-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-type-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

/* Contact Form Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
}

.close {
    color: var(--subtle-text-color);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 30px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.modal-body .form-group input:focus,
.modal-body .form-group select:focus,
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.modal-body .form-group input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.modal-body .form-group input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.modal-body .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin: 24px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-secondary {
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.loading-spinner {
    display: none;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.notification-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 20px 12px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Canvas Wrapper */
.canvas-wrapper {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
}

.canvas {
    position: relative;
    overflow: hidden;
    flex: 1;
}

/* Canvas Elements */
.scale-bar {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    font-size: 12px;
    color: var(--text-color);
}

.scale-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.scale-line-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.scale-line {
    height: 8px;
    width: 112px;
    background: var(--text-color);
}

.scale-details {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.8;
}

.north-marker {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: var(--text-color);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    z-index: 10;
}

.category-legend {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    font-size: 12px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

/* Plan Items */
.plan-item {
    position: absolute;
    user-select: none;
    cursor: pointer;
}

.plan-item.selected .plan-item-body {
    box-shadow: 0 0 0 2px var(--primary-light);
}

.plan-item.multi-selected .plan-item-body {
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.6);
}

.plan-item.selected.multi-selected .plan-item-body {
    box-shadow: 0 0 0 3px var(--primary-light), 0 0 0 5px rgba(168, 85, 247, 0.3);
}

.plan-item.connection-start .plan-item-body {
    box-shadow: 0 0 0 3px #10b981, 0 0 10px rgba(16, 185, 129, 0.4);
    animation: pulse-green 1s ease-in-out infinite alternate;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 3px #10b981, 0 0 10px rgba(16, 185, 129, 0.4); }
    100% { box-shadow: 0 0 0 3px #10b981, 0 0 20px rgba(16, 185, 129, 0.7); }
}

.plan-item-body {
    position: relative;
    border-radius: 8px;
    border: 2px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.plan-item-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.plan-item-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 3px 8px;
    margin-bottom: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.plan-item-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 2px 6px;
}

.plan-item-dimensions {
    font-size: 10px;
    color: var(--subtle-text-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 4px;
}

.plan-item-rotation {
    font-size: 10px;
    color: var(--subtle-text-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 4px;
}

.rotate-handle {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: grab;
    transition: all 0.2s ease;
}

.rotate-handle:hover {
    background: var(--bg-color);
    transform: translateX(-50%) scale(1.1);
}

.rotate-handle:active {
    cursor: grabbing;
}

.door-arrow-container {
    position: absolute;
    left: 50%;
    top: 50%;
}

.door-arrow {
    position: absolute;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Property Panel */
.property-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    border-left: 1px solid var(--border-color);
    background: var(--card-bg-color);
    padding: 20px;
    overflow: auto;
    transition: transform 0.2s ease;
    z-index: 20;
}

.property-panel h3 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.property-hint {
    font-size: 14px;
    color: var(--subtle-text-color);
    margin-top: 8px;
}

.properties-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
    color: var(--text-color);
}

.properties-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-item {
    font-weight: 500;
}

.delete-btn {
    padding: 6px 12px;
    border: 1px solid var(--red);
    border-radius: 4px;
    color: var(--red);
    background: white;
    font-size: 12px;
}

.delete-btn:hover {
    background: var(--red);
    color: white;
}

.properties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.property-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--subtle-text-color);
}

.property-input {
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}

.property-input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 80, 157, 0.2);
}

.rotation-controls {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: end;
    gap: 8px;
}

.rotation-input {
    display: block;
}

.rotation-btn {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
    background: white;
    color: var(--text-color);
}

.rotation-btn:hover {
    border-color: var(--primary-light);
    background: var(--bg-color);
}

.color-input {
    width: 100%;
    margin-top: 4px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.property-note {
    font-size: 12px;
    color: var(--subtle-text-color);
    margin: 0;
    line-height: 1.4;
}

/* Import/Export Section */
.import-export-section {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
}

.import-export-section h4 {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.import-export-textarea {
    width: 100%;
    height: 160px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 11px;
    resize: vertical;
}

.import-export-hint {
    font-size: 11px;
    color: var(--subtle-text-color);
    margin: 8px 0 0 0;
}

.shortcuts-info {
    margin-top: 24px;
    font-size: 11px;
    color: var(--subtle-text-color);
}

.shortcuts-info p {
    margin: 0;
    line-height: 1.4;
}

/* Custom Adder */
.custom-adder {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.custom-label {
    color: var(--subtle-text-color);
}

.custom-input {
    width: 64px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}

.custom-text-input {
    width: 96px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}

.add-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--text-color);
    color: white;
    border: none;
}

.add-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
}

.back-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-medium);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-features {
        text-align: left;
    }
    
    .main-content {
        padding: 20px 10px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .sales-channels-selector {
        grid-template-columns: 1fr;
    }
    
    .channel-inputs .input-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    #send-report-btn {
        font-size: 14px;
        padding: 12px 20px;
        min-width: 200px;
    }
    
    .yield-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .container-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .container-right {
        flex: 1 1 auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 16px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-option {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .btn-option:last-child {
        border-bottom: none;
    }
    
    /* Time rings responsive */
    .time-rings-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .time-ring {
        width: 260px;
        height: 260px;
    }
    
    .season-header {
        gap: 8px;
    }
    
    .season-icon {
        font-size: 20px;
    }
    
    /* Footer responsive */
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .hero-logo {
        height: 60px;
        margin-bottom: 20px;
    }
    
    /* Time Ring responsive */
    .time-ring {
        width: 200px;
        height: 200px;
    }
    
    .time-ring-container {
        padding: 10px;
    }
    
    /* Container Farm Planner responsive */
    .property-panel {
        width: 280px;
        padding: 16px;
    }
    
    .toolbar {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .toolbar-controls {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
        justify-content: space-between;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .rotation-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .rotation-controls .rotation-btn {
        width: 100%;
    }
    
    .custom-adder {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .custom-input,
    .custom-text-input {
        min-width: 60px;
    }
    
    /* Sticky Navigation responsive */
    .nav-container {
        padding: 8px 16px;
        height: 54px;
    }
    
    .nav-title {
        font-size: 16px;
    }
    
    .nav-logo {
        height: 28px;
    }
    
    .nav-planner-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .nav-planner-btn svg {
        width: 18px;
        height: 18px;
    }
    
    body {
        padding-top: 70px; /* Adjust for mobile nav height */
    }
}

/* ===== NEW HOMEPAGE STYLES (index-01.html) ===== */

/* HS Code Tool Section */
.hscode-tool-section {
    background: var(--bg-color);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.hscode-tool-card {
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.hscode-tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.hscode-tool-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.tool-subtitle {
    font-size: 18px;
    color: var(--primary-medium);
    font-weight: 500;
    margin: 0;
}

.hscode-search-container {
    margin-bottom: 40px;
}

.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.hscode-search-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.hscode-search-input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.1);
}

.hscode-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    white-space: nowrap;
    min-width: 160px;
    justify-content: center;
}

.hscode-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--subtle-text-color);
    font-style: italic;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hscode-error {
    display: none;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    margin-top: 12px;
}

/* Results Display */
.hscode-results {
    display: none;
    margin-bottom: 30px;
}

.result-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    background: white;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.result-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-color);
}

.result-hscode {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-lightest);
    padding: 8px 16px;
    border-radius: 6px;
}

.result-hscode .label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.result-hscode .value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
}

.result-description {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-color);
    border-radius: 8px;
}

.result-description p {
    margin: 0;
    color: var(--subtle-text-color);
    line-height: 1.5;
}

.tariff-rates h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: var(--text-color);
}

.rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: help;
    transition: all 0.2s ease;
}

.rate-item:hover {
    border-color: var(--primary-light);
    background: var(--primary-lightest);
    transform: translateY(-2px);
}

.rate-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--subtle-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rate-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 4px;
}

/* CTA Section */
.hscode-cta {
    display: none;
    margin-top: 30px;
}

.cta-content {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-lightest), white);
    border-radius: 12px;
    border: 1px solid var(--primary-lighter);
}

.cta-content h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: var(--text-color);
}

.cta-content p {
    margin: 0 0 24px 0;
    color: var(--subtle-text-color);
    font-size: 16px;
}

.cta-button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* Tools Preview Section */
.tools-preview-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--subtle-text-color);
    max-width: 600px;
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-preview-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.tool-preview-card.featured {
    border: 2px solid var(--primary-light);
    background: linear-gradient(135deg, white, var(--primary-lightest));
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.tool-preview-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.tool-preview-card p {
    color: var(--subtle-text-color);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tool-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tool-tags span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-flagship {
    background: var(--gradient-ocean);
    color: white;
}

.tag-strategic {
    background: var(--primary-lightest);
    color: var(--primary-dark);
}

.tag-specialized {
    background: var(--accent-yellow);
    color: var(--text-color);
}

.tag-agriculture {
    background: var(--green);
    color: white;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg-color);
}

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

.service-card {
    background: var(--card-bg-color);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--subtle-text-color);
    line-height: 1.6;
}

/* Case Study Section */
.case-study-section {
    padding: 80px 0;
    background: white;
}

.case-study-card {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.case-study-header {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    color: white;
    padding: 40px;
    text-align: center;
}

.case-study-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.case-study-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.case-study-text h3 {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 24px;
}

.case-highlights {
    margin-bottom: 24px;
}

.highlight-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.highlight-label {
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 80px;
}

.highlight-item span:last-child {
    color: var(--subtle-text-color);
}

.case-study-content blockquote {
    font-style: italic;
    color: var(--text-color);
    border-left: 4px solid var(--primary-light);
    padding-left: 20px;
    margin: 24px 0;
    font-size: 16px;
    line-height: 1.6;
}

.case-study-content cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-weight: 500;
    color: var(--primary-dark);
}

.case-study-metrics {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 180px;
}

.metric-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.metric-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 14px;
    color: var(--subtle-text-color);
    font-weight: 500;
}

.case-study-cta {
    padding: 30px 40px;
    text-align: center;
    background: var(--bg-color);
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: var(--bg-color);
    text-align: center;
}

.trust-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 40px;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--subtle-text-color);
    font-weight: 500;
}

.trust-message {
    font-size: 18px;
    color: var(--text-color);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.contact-header p {
    font-size: 18px;
    color: var(--subtle-text-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 24px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.contact-item svg {
    color: var(--primary-light);
}

.consultation-benefits {
    background: var(--bg-color);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.consultation-benefits h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 16px;
}

.consultation-benefits ul {
    margin: 0;
    padding-left: 20px;
    color: var(--subtle-text-color);
}

.consultation-benefits li {
    margin-bottom: 8px;
}

.booking-section {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.booking-widget-placeholder {
    text-align: center;
}

.booking-widget-placeholder h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 16px;
}

.booking-widget-placeholder p {
    color: var(--subtle-text-color);
    margin-bottom: 24px;
}

.booking-cta {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

.booking-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--subtle-text-color);
    font-style: italic;
}

/* Tooltip System */
.tooltip {
    position: absolute;
    z-index: 1000;
    background: var(--text-color);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 250px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.tooltip-content {
    margin: 0;
}

.tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-color);
}

/* Footer Updates */
.footer {
    background: var(--text-color);
    color: white;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Mobile Responsive for New Homepage */
@media (max-width: 768px) {
    .hscode-tool-card {
        margin: 0 20px;
        padding: 24px;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .hscode-search-btn {
        min-width: auto;
        width: 100%;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-study-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-study-metrics {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .trust-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .rate-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

/* Enhanced HS Code Tool Styles */

/* No Results Guidance */
.no-results-guidance {
    background: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.guidance-header h3 {
    color: var(--text-color);
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.guidance-subtitle {
    color: var(--subtle-text-color);
    margin: 0 0 25px 0;
    font-size: 1rem;
}

/* Professional Notice */
.professional-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content h4 {
    color: #856404;
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.notice-content p {
    color: #856404;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.notice-content ul {
    color: #856404;
    margin: 0;
    padding-left: 20px;
}

.notice-content li {
    margin: 4px 0;
}

/* Search Suggestions */
.search-suggestions {
    background: var(--secondary-bg-color);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.search-suggestions h4 {
    color: var(--text-color);
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 600;
}

.suggestion-list {
    margin: 0;
    padding-left: 20px;
}

.suggestion-list li {
    color: var(--text-color);
    margin: 8px 0;
    line-height: 1.4;
}

/* Expert CTA */
.expert-cta {
    text-align: center;
    padding: 20px 0;
}

.expert-cta h4 {
    color: var(--text-color);
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.expert-cta p {
    color: var(--subtle-text-color);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Enhanced CTA Content */
.cta-requirements {
    text-align: left;
    margin: 15px 0 20px 0;
    padding-left: 20px;
}

.cta-requirements li {
    margin: 6px 0;
    line-height: 1.4;
}

.cta-disclaimer {
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    margin: 12px 0 0 0;
    font-style: italic;
}

/* Data Source Indicator */
.data-source-indicator {
    background: var(--secondary-bg-color);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 15px 0 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid var(--primary-medium);
}

/* Enhanced Error Styling */
.hscode-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 1.2rem;
    color: #721c24;
}

.error-message {
    color: #721c24;
    font-weight: 500;
}

/* Loading Animation Enhancement */
.hscode-loading {
    background: var(--secondary-bg-color);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-medium);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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