/* Su.superfood-widget {
    max-width: 1400px !important;
    margin: 0 auto !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

/* Dark mode styles */
html[scheme="dark"] body,
html[scheme="dark"] body,
[scheme="dark"] body,
[scheme="dark"] body {
    background-color: #1f2328 !important;
}

html[scheme="dark"] .superfood-widget,
html[scheme="dark"] .superfood-widget,
[scheme="dark"] .superfood-widget,
[scheme="dark"] .superfood-widget {
    background: linear-gradient(135deg, #2d3238 0%, #1f2328 100%) !important;
    color: #e6edf3 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[scheme="dark"] .widget-header h2 {
    color: #23525c !important;
}

html[scheme="dark"] .widget-header p {
    color: #7d8590 !important;
}
trition Calculator Widget Styles */ * {
    box-sizing: border-box;
}

.superfood-widget {
    max-width: 1400px;
    margin: 0 auto;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #333;
}

.widget-header {
    text-align: center;
    margin-bottom: 30px;
}

.widget-header h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.widget-header p {
    color: #7f8c8d;
    font-size: 1.1em;
    margin: 0;
}

/* Search Section */
.search-container {
    position: relative !important;
    margin-bottom: 25px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.search-input {
    width: 100% !important;
    padding: 15px 50px 15px 20px !important;
    font-size: 16px !important;
    border: 2px solid #e0e6ed !important;
    border-radius: 15px !important;
    background: white !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.search-input:focus {
    border-color: #23525c !important;
    box-shadow: 0 0 15px rgba(243, 152, 152, 0.2) !important;
}

/* Dark mode search input */
html[scheme="dark"] .search-input {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}

html[scheme="dark"] .search-input:focus {
    border-color: #23525c !important;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #95a5a6;
}

/* Superfood Grid */
.superfood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.superfood-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.superfood-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #23525c !important;
}

.superfood-item.selected {
    background: linear-gradient(135deg, #23525c 0%, #2a616d 100%) !important;
    color: white !important;
    border-color: #23525c !important;
}

/* Dark mode superfood items */
html[scheme="dark"] .superfood-item {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}

html[scheme="dark"] .superfood-item:hover {
    border-color: #23525c !important;
}

html[scheme="dark"] .superfood-item.selected {
    background: linear-gradient(135deg, #23525c 0%, #2a616d 100%) !important;
    color: white !important;
    border-color: #23525c !important;
}

html[scheme="dark"] .superfood-item.selected .superfood-portion {
    color: #ecf0f1 !important;
}

html[scheme="dark"] .superfood-item.selected .superfood-calories {
    color: #fff !important;
}

.superfood-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.superfood-portion {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.superfood-item.selected .superfood-portion {
    color: #ecf0f1;
}

.superfood-calories {
    font-size: 1.2em;
    font-weight: 700;
    color: #2a616d;
}

.superfood-item.selected .superfood-calories {
    color: #fff;
}

/* Selected Section */
.selected-section {
    background: white !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    border-left: 5px solid #23525c !important;
}

/* Dark mode selected section */
html[scheme="dark"] .selected-section {
    background: #21262d !important;
    border-left-color: #23525c !important;
}

html[scheme="dark"] .selected-section h3 {
    color: #e6edf3 !important;
}

.selected-section h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.4em;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.selected-item {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-item {
    background: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    color: white !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 12px !important;
    line-height: 1 !important;
    transition: background 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.remove-item:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

.clear-all-btn {
    background: linear-gradient(135deg, #2a616d 0%, #23525c 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    transform: translateY(-2px);
    box-shadow:none;
}

.nutrition-summary {
    background: white !important;
    border-radius: 15px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    border-left: 5px solid #23525c !important;
}

/* Dark mode nutrition summary */
html[scheme="dark"] .nutrition-summary {
    background: #21262d !important;
    border-left-color: #23525c !important;
}

html[scheme="dark"] .nutrition-summary h3 {
    color: #e6edf3 !important;
}

html[scheme="dark"] .nutrition-item {
    background: #30363d !important;
    border-left-color: #23525c !important;
}

html[scheme="dark"] .nutrition-item .label {
    color: #e6edf3 !important;
}

html[scheme="dark"] .nutrition-item .value {
    color: #23525c !important;
}

.nutrition-summary h3 {
    color: #2c3e50;
    margin: 0 0 25px 0;
    font-size: 1.4em;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.nutrition-item {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-left: 4px solid #23525c !important;
}

.nutrition-item .label {
    font-weight: 600;
    color: #2c3e50;
}

.nutrition-item .value {
    font-weight: 700 !important;
    font-size: 1.2em !important;
    color: #23525c !important;
}

.nutrition-item .unit {
    font-size: 0.9em;
    color: #7f8c8d;
}

/* Nutrition Chart */
.nutrition-chart {
    margin-top: 30px;
}

.nutrition-chart h4 {
    color: #2c3e50 !important;
    margin: 0 0 20px 0 !important;
    font-size: 1.2em !important;
}

/* Dark mode chart styles */
html[scheme="dark"] .nutrition-chart h4 {
    color: #e6edf3 !important;
}

html[scheme="dark"] .chart-bar {
    background: #30363d !important;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-bar {
    position: relative;
    height: 40px;
    background: #ecf0f1;
    border-radius: 20px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s ease;
    position: relative;
}

.protein-bar .bar-fill {
    background: linear-gradient(90deg, #23525c 0%, #2a616d 100%) !important;
}

.fat-bar .bar-fill {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%) !important;
}

.carbs-bar .bar-fill {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%) !important;
}

.bar-label {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-weight: 600 !important;
    color: white !important;
    z-index: 2 !important;
}

.health-benefits {
    background: white !important;
    border-radius: 15px !important;
    padding: 25px !important;
    border-left: 5px solid #23525c !important;
}

.health-benefits h3 {
    color: #2c3e50 !important;
    margin: 0 0 20px 0 !important;
    font-size: 1.4em !important;
}

/* Dark mode health benefits */
html[scheme="dark"] .health-benefits {
    background: #21262d !important;
    border-left-color: #23525c !important;
}

html[scheme="dark"] .health-benefits h3 {
    color: #e6edf3 !important;
}

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

.benefit-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: scale(1.05);
}

.benefit-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.benefit-title {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.benefit-description {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .superfood-widget {
        padding: 20px !important;
        margin: 10px !important;
    }

    .widget-header h2 {
        font-size: 1.8em !important;
    }

    .superfood-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }

    .nutrition-grid {
        grid-template-columns: 1fr !important;
    }

    .selected-items {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .superfood-grid {
        grid-template-columns: 1fr !important;
    }

    .superfood-widget {
        padding: 15px !important;
    }
}
