* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; background: #f5f6fa; display: flex; min-height: 100vh; }

/* 사이드바 */
.sidebar { width: 220px; background: linear-gradient(180deg, #1565C0, #0D47A1); color: white; position: fixed; height: 100vh; z-index: 100; }
.sidebar h4 { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 18px; }
.sidebar .nav-link { color: rgba(255,255,255,.75); padding: 12px 20px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px; transition: all .2s; text-decoration: none; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.1); color: white; }
.sidebar .nav-link.active { background: rgba(255,255,255,.2); color: white; font-weight: 700; border-left: 3px solid white; }
.sidebar .nav-link i { font-size: 16px; width: 20px; text-align: center; }

/* 메인 */
.main { margin-left: 220px; padding: 24px; flex: 1; min-height: 100vh; }

/* 스탯카드 */
.stat-card { background: white; border-radius: 14px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); text-align: center; transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-card .value { font-size: 26px; font-weight: 800; color: #1565C0; }
.stat-card .label { font-size: 13px; color: #6c757d; margin-top: 4px; }

/* 카드 */
.card { border: none; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.card-header { background: white; border-bottom: 1px solid #f0f0f0; border-radius: 14px 14px 0 0 !important; padding: 16px 20px; }
.card-header h5, .card-header h6 { margin: 0; font-weight: 700; }

/* 주문 */
.order-pending { border-left: 4px solid #f44336; animation: pulse 2s infinite; }
.order-cooking { border-left: 4px solid #ff9800; }
.order-delivering { border-left: 4px solid #2196f3; }
.order-delivered { border-left: 4px solid #4caf50; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.85} }

/* 가계부 */
.income { color: #1565C0; }
.expense { color: #f44336; }

/* 뱃지 */
.badge-pending { background: #f44336; }
.badge-cooking { background: #ff9800; }
.badge-delivering { background: #2196f3; }
.badge-delivered { background: #4caf50; }

/* 테이블 */
.table th { font-size: 13px; color: #6c757d; font-weight: 600; }
.table td { vertical-align: middle; font-size: 14px; }

/* 반응형 */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar h4, .sidebar .nav-link span { display: none; }
  .sidebar .nav-link { justify-content: center; padding: 14px; }
  .main { margin-left: 60px; padding: 16px; }
}

/* 로그인 페이지 */
.login-bg { background: linear-gradient(135deg, #1565C0, #0D47A1); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: white; border-radius: 20px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
