#itemCount {
    font-weight: bold;
    color: var(--accent-blue);
    background: #e1f5fe;
    padding: 2px 8px;
    border-radius: 5px;
}

/* --- Brand Variables --- */
:root {
    --primary-bg: #f4f7f6;
    --card-bg: #ffffff;
    --text-dark: #2d3436;
    --safe-color: #2ecc71;   /* Green */
    --caution-color: #f1c40f; /* Yellow */
    --toxic-color: #e74c3c;   /* Red */
    --accent-blue: #0984e3;
}

/* --- Basic Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header --- */
header {
    background: white;
    padding: 40px 0;
    text-align: center;
    border-bottom: 2px solid #eee;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* --- Search & Filters --- */
.search-area {
    margin: 30px 0;
    text-align: center;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #dfe6e9;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: var(--accent-blue);
}

.filter-buttons {
    margin-top: 15px;
}

.filter-btn {
    padding: 8px 16px;
    margin: 5px;
    border: none;
    border-radius: 20px;
    background: #dfe6e9;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-blue);
    color: white;
}

/* --- Results Grid --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* --- The Magic Cards --- */
.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 10px solid #ccc; /* Default gray */
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Status Classes (JavaScript will apply these) */
.card.toxic { border-left-color: var(--toxic-color); }
.card.caution { border-left-color: var(--caution-color); }
.card.safe { border-left-color: var(--safe-color); }

.card h3 { margin-bottom: 5px; }
.card .scientific { font-style: italic; color: #636e72; font-size: 0.9rem; }
.card .status-label { 
    display: inline-block;
    padding: 2px 10px;
    border-radius: 5px;
    margin-top:
	}
	
	

	
	/* Navigation & Footer Styling */
.top-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.top-nav a, .footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.top-nav a:hover, .footer-links a:hover {
    text-decoration: underline;
    color: #333;
}

.site-footer {
    margin-top: 50px;
    padding: 40px 0;
    background: #f9f9f9;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-disclaimer {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

.footer-links {
    margin-bottom: 15px;
}




.btn-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-more:hover {
    background-color: #e0e0e0;
}

/* Detail Page specific layout */
.status-banner {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 20px;
}
.status-banner.toxic { background: #fee2e2; color: #991b1b; }
.status-banner.safe { background: #dcfce7; color: #166534; }
.status-banner.caution { background: #fef9c3; color: #854d0e; }

.more-info-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

.more-info-btn:hover {
    background-color: #076ad2;
    text-decoration: none;
}

/* Optional: Make the whole card feel clickable */
.card {
    position: relative;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}