@charset "utf-8";

/* 식단표 캘린더 스킨 */
#meal_calendar { width: 100%; }

.meal-header {
    text-align: center;
    margin-bottom: 24px;
}
.meal-title {
    font-size: 28px;
    font-weight: 700;
    color: #007F28;
    margin-bottom: 16px;
}
.meal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.meal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e9ecef;
    color: #666;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.meal-nav-btn:hover { border-color: #007F28; color: #007F28; }
.meal-month {
    font-size: 22px;
    font-weight: 700;
    color: #007F28;
    min-width: 160px;
}

/* 테이블 */
.meal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.meal-table thead th {
    padding: 10px 4px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #222;
    text-align: center;
}
.meal-table thead th.sun { color: #e74c3c; }
.meal-table thead th.sat { color: #3498db; }

.meal-table td {
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    padding: 8px 6px;
    min-height: 100px;
}
.meal-empty { background: #fafafa; }

.meal-day-num {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}
.meal-day.sun .meal-day-num { color: #e74c3c; }
.meal-day.sat .meal-day-num { color: #3498db; }
.meal-day.today .meal-day-num {
    display: inline-block;
    background: #007F28;
    color: #fff;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
}

.meal-item {
    font-size: 11px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 4px;
    word-break: break-all;
}
.meal-item strong {
    color: #333;
    font-size: 11px;
}

/* 클릭 가능한 셀 */
.meal-day[onclick]:hover { background: #f0faf3; }

/* 식단 입력 모달 */
.meal-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meal-modal {
    background: #fff;
    border-radius: 12px;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.meal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}
.meal-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.meal-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.meal-modal-close:hover { color: #333; }
.meal-modal-body { padding: 24px; }
.meal-modal-date {
    font-size: 16px;
    font-weight: 600;
    color: #007F28;
    margin-bottom: 20px;
    text-align: center;
}
.meal-form-row {
    margin-bottom: 16px;
}
.meal-form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.meal-form-row .frm_input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}
.meal-form-row .frm_input:focus { border-color: #007F28; }
.meal-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 16px 24px 24px;
}
.meal-modal-footer .btn {
    padding: 10px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}
.meal-modal-footer .btn_submit {
    background: #007F28;
    color: #fff;
}
.meal-modal-footer .btn_submit:hover { background: #005a1c; }
.meal-modal-footer .btn_cancel {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

/* 반응형 */
@media (max-width: 768px) {
    .meal-table { font-size: 10px; }
    .meal-table td { padding: 4px 2px; }
    .meal-day-num { font-size: 12px; }
    .meal-item { font-size: 9px; }
    .meal-title { font-size: 22px; }
    .meal-month { font-size: 18px; }
}
