body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAF6F2;
    color: #3E2723;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background: linear-gradient(135deg, #D4A017 0%, #E6B325 50%, #8B7355 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #3E2723;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #5D4037;
}

.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #D4A017;
}

.features {
    background-color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: #FAF6F2;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #E6B325;
}

.feature-card h3 {
    color: #D4A017;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.benefits {
    background-color: #8B7355;
    color: white;
}

.benefits h2 {
    color: white;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.benefit-item h4 {
    color: #E6B325;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.contact {
    background-color: white;
    text-align: center;
}

.contact-info {
    background-color: #FAF6F2;
    padding: 40px;
    border-radius: 10px;
    border: 2px solid #D4A017;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #D4A017;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.email {
    font-weight: bold;
    color: #8B7355;
    font-size: 1.3em;
}

footer {
    background-color: #3E2723;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.coming-soon {
    padding: 80px 0;
    background-color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.placeholder-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.icon-container {
    margin-bottom: 30px;
}

.wheat-icon {
    font-size: 4em;
    animation: sway 3s ease-in-out infinite;
    display: inline-block;
}

.placeholder-content h2 {
    font-size: 2.5em;
    color: #D4A017;
    margin-bottom: 20px;
    font-weight: bold;
}

.placeholder-content p {
    font-size: 1.2em;
    color: #3E2723;
    margin-bottom: 30px;
    line-height: 1.6;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4A017, #E6B325);
    border-radius: 4px;
    animation: progress 2s ease-in-out infinite;
    width: 70%;
}

.small-text {
    font-size: 1em;
    color: #8B7355;
    font-style: italic;
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 0%;
    }
}

/* Budget Calculator Styles */
.budget-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
    font-size: 12px;
}

.budget-table caption {
    caption-side: top;
    padding: 12px;
    background: linear-gradient(135deg, #D4A017 0%, #E6B325 50%, #8B7355 100%);
    color: white;
    text-align: center;
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.budget-table th,
.budget-table td {
    padding: 4px 3px;
    text-align: center;
    border: 1px solid #E0E0E0;
    vertical-align: middle;
    line-height: 1.2;
}

.budget-table th {
    background: #8B7355;
    color: white;
    font-weight: 600;
    position: relative;
}

.budget-table th.row-header {
    background: #D4A017;
    text-align: left;
    padding-left: 8px;
    font-weight: 500;
    font-size: 11px;
}

.budget-table td.row-label {
    background: #FAF6F2;
    text-align: left;
    padding-left: 8px;
    font-weight: 500;
    color: #3E2723;
    font-size: 11px;
    width: 180px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.budget-table tr:nth-child(even) td:not(.row-label) {
    background: #F9F9F9;
}

.budget-table tr:hover td:not(.row-label) {
    background: #F0F8FF;
    transition: background-color 0.2s ease;
}

/* Section separators */
.income-section th:first-child {
    background: #4CAF50;
    color: white;
}

.expense-section th:first-child {
    background: #F44336;
    color: white;
}

.profit-section th:first-child {
    background: #2196F3;
    color: white;
}

/* Vertical text for row headers */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 10px 6px !important;
    min-width: 30px;
    font-weight: bold;
    font-size: 12px;
}

/* Input field styling */
.input-field {
    width: 65px;
    padding: 2px 4px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
    height: 24px;
    box-sizing: border-box;
}

/* Fixed width for all agriculture columns via colgroup */
.budget-table .agri-column {
    width: 100px;
}

/* Cell padding and input styling for agriculture columns */
.budget-table td:not(.row-label) {
    padding: 2px 2px;
}

.budget-table td:not(.row-label) .input-field {
    width: 100%;
    box-sizing: border-box;
}

/* Override specific input widths to use 100% */
.input-culture-name,
.input-yield {
    width: 100% !important;
}

/* Input with unit wrapper for inline layout */
.input-oneliner {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
    flex-wrap: nowrap;
}

/* Smaller input size for primary processing */
.input-small {
    width: 80%;
}

.input-oneliner .unit-label {
    font-size: 9px;
    margin: 0;
    white-space: nowrap;
}


.unit-label {
    font-size: 10px;
    color: #666;
    margin: 1px 0;
}

.input-field:focus {
    outline: none;
    border-color: #D4A017;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2);
    transform: scale(1.02);
}

.input-field:hover {
    border-color: #8B7355;
}

.input-readonly {
    background: #F5F5F5;
    color: #3E2723;
    font-weight: 600;
    cursor: not-allowed;
    border-color: #CCCCCC;
}

.input-readonly:hover {
    border-color: #CCCCCC;
    transform: none;
}

/* Button styling */
.btn-add {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: 8px;
    font-size: 13px;
}

.btn-add:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-action {
    background: #D4A017;
    color: white;
    border: none;
    padding: 1px 3px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    margin: 1px;
    transition: all 0.2s ease;
    height: 16px;
    line-height: 1;
    width: 100%;
    box-sizing: border-box;
}

.btn-action:hover {
    background: #8B7355;
    transform: scale(1.05);
}

.btn-refresh {
    background: #FF9800;
    width: 21px;
    height: 20px;
}

.btn-refresh:hover {
    background: #F57C00;
}

.btn-fix {
    background: #4CAF50;
}

.btn-fix:hover {
    background: #45a049;
}

/* Culture input styling */
.culture-input {
    width: 200px;
    padding: 10px 15px;
    border: 2px solid #D4A017;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.culture-input:focus {
    outline: none;
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

/* Total rows styling */
.total-row {
    background: linear-gradient(135deg, #FAF6F2 0%, #F0E6D2 100%) !important;
    font-weight: bold;
}

.total-row td {
    border-top: 2px solid #D4A017;
    border-bottom: 2px solid #D4A017;
}

/* Profit scenario styling */
.profit-positive {
    color: #4CAF50;
    font-weight: 600;
}

.profit-negative {
    color: #F44336;
    font-weight: 600;
}

.profit-neutral {
    color: #FF9800;
    font-weight: 600;
}

/* Responsive table wrapper */
.responsive-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .budget-table {
        font-size: 11px;
    }

    .budget-table th,
    .budget-table td {
        padding: 3px 2px;
        line-height: 1.1;
    }

    .input-field {
        width: 50px;
        padding: 1px 3px;
        font-size: 11px;
        height: 20px;
    }

    .input-culture-name {
        width: 60px;
    }

    .input-yield {
        width: 45px;
    }

    .vertical-text {
        padding: 6px 4px !important;
        min-width: 25px;
        font-size: 10px;
    }

    .culture-input {
        width: 150px;
        font-size: 12px;
    }

    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 8px 4px !important;
        min-width: auto;
    }

    .budget-table td.row-label {
        width: 120px;
        max-width: 120px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .section h2 {
        font-size: 2em;
    }

    .coming-soon {
        padding: 60px 0;
    }

    .placeholder-content h2 {
        font-size: 2em;
    }

    .wheat-icon {
        font-size: 3em;
    }
}