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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

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

/* Header */
header {
    background: linear-gradient(135deg, #008b44 0%, #3a7d42 100%);
    color: white;
    padding: 40px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: #F7C951;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: all 0.3s;
}

.back-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-5px);
}

/* Main Content */
main {
    padding: 40px 0;
}

/* Dosatron CTA Banner */
.dosatron-cta {
    background: linear-gradient(135deg, #008b44 0%, #3a7d42 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.dosatron-cta-content h2 {
    color: white;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.dosatron-cta-content p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2em;
    margin-bottom: 25px;
}

.dosatron-cta-btn {
    display: inline-block;
    padding: 18px 40px;
    background: #F7C951;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dosatron-cta-btn:hover {
    background: #e6b840;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.search-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

#brandSearch {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s;
}

#brandSearch:focus {
    outline: none;
    border-color: #008b44;
    box-shadow: 0 0 0 3px rgba(71, 158, 82, 0.1);
}

.print-btn {
    padding: 15px 30px;
    background: #F7C951;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.brand-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.brand-card h2 {
    color: #008b44;
    margin-bottom: 15px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    background: #F7C951;
    color: #333;
    font-size: 0.5em;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
}

.product-list {
    list-style: none;
    margin: 15px 0;
}

.product-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

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

.view-chart-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #008b44;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.view-chart-btn:hover {
    background: #3a7d42;
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 40px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #000;
}

#modalBody {
    padding: 40px;
}

.chart-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #008b44;
}

.chart-header h2 {
    color: #008b44;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.chart-note {
    background: #fff9e6;
    padding: 20px;
    border-left: 4px solid #F7C951;
    margin-bottom: 30px;
    border-radius: 5px;
}

.chart-note h4 {
    color: #333;
    margin-bottom: 10px;
}

.chart-note ul {
    margin-left: 20px;
}

.feeding-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feeding-table th {
    background: #008b44;
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #3a7d42;
}

.feeding-table td {
    padding: 12px 10px;
    border: 1px solid #ddd;
}

.feeding-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.feeding-table tbody tr:hover {
    background-color: #f0f8f0;
}

/* Stage Colors */
.stage-seedling {
    background-color: #e8f5e9 !important;
}

.stage-veg {
    background-color: #c8e6c9 !important;
}

.stage-transition {
    background-color: #fff9c4 !important;
}

.stage-bloom {
    background-color: #ffe0b2 !important;
}

.stage-late-bloom {
    background-color: #ffccbc !important;
}

.stage-flush {
    background-color: #b3e5fc !important;
}

.buy-products-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #F7C951;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1em;
    margin-top: 20px;
    transition: all 0.3s;
}

.buy-products-btn:hover {
    background: #e6b840;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .search-section, .print-btn, footer, .back-link, .view-chart-btn, .close-btn {
        display: none !important;
    }
    
    .brand-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .modal {
        display: block !important;
        position: static;
        background: white;
    }
    
    .modal-content {
        box-shadow: none;
        width: 100%;
        max-height: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .feeding-table {
        font-size: 14px;
    }
    
    .feeding-table th,
    .feeding-table td {
        padding: 8px 5px;
    }
    
    #modalBody {
        padding: 20px;
    }
    
    .chart-header h2 {
        font-size: 1.8em;
    }
}
