/* استایل‌های اصلی */
body {
    background: #f4f7fb;
    font-family: tahoma, sans-serif;
}

.main-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,.08);
}

.header-box {
    background: linear-gradient(135deg,#0d6efd,#20c997);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
}

.result-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
}

/* استایل جدول */
.table-food {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,.05);
}

.table-food th {
    background-color: #0d6efd;
    color: white;
    text-align: center;
    font-size: 0.85rem;
    vertical-align: middle;
}

.table-food td {
    text-align: center;
    vertical-align: middle;
    font-size: 0.82rem;
}

.table-food tr:hover {
    background-color: #f0f7ff;
}

.badge-group {
    font-size: 0.7rem;
}

/* استایل نمودارها */
.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.chart-container-pie {
    position: relative;
    height: 300px;
    width: 100%;
}

/* استایل باکس خلاصه رژیم */
.summary-box {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 15px;
    padding: 20px;
    border-right: 5px solid #28a745;
}

.summary-box h5 {
    color: #2e7d32;
    font-weight: bold;
}

.unit-item {
    display: inline-block;
    background: white;
    border-radius: 30px;
    padding: 8px 18px;
    margin: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    font-size: 0.9rem;
}

.unit-item .unit-badge {
    display: inline-block;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-weight: bold;
    margin-left: 6px;
    font-size: 0.8rem;
}

/* فیلترها */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

/* پاسخگویی */
@media (max-width: 768px) {
    .table-food th, .table-food td {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    .unit-item {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* چاپ */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .main-card { box-shadow: none; }
}

/* اسکرول افقی جدول در موبایل */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}