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

/* 사이드바 */
.sidebar {
    width: 240px; background: #1a1a2e; color: white; position: fixed; height: 100vh;
    overflow-y: auto; z-index: 100; transition: 0.3s;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
.sidebar-header h4 { margin-bottom: 4px; }
.sidebar-header small { color: rgba(255,255,255,0.5); }
.sidebar .nav-link {
    color: rgba(255,255,255,0.7); padding: 12px 20px; display: flex; align-items: center;
    gap: 10px; transition: 0.2s; cursor: pointer; border-left: 3px solid transparent;
}
.sidebar .nav-link:hover { color: white; background: rgba(255,255,255,0.05); }
.sidebar .nav-link.active { color: #FF6B35; background: rgba(255,107,53,0.1); border-left-color: #FF6B35; }
.sidebar .nav-link i { font-size: 18px; width: 24px; text-align: center; }

/* 메인 콘텐츠 */
.content { margin-left: 240px; padding: 24px; flex: 1; }
.content-header h2 { font-weight: 700; }

/* 통계 카드 */
.stat-card {
    padding: 24px; border-radius: 12px; position: relative; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.stat-icon { font-size: 48px; position: absolute; right: 16px; top: 16px; opacity: 0.3; }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; opacity: 0.8; margin-top: 4px; }

/* 카드 */
.card { border: none; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card-header { background: white; border-bottom: 1px solid #eee; padding: 16px 20px; }

/* 상태 배지 */
.status-pending { background: #fff3e0; color: #e65100; }
.status-accepted { background: #e3f2fd; color: #1565c0; }
.status-cooking { background: #fff8e1; color: #f57f17; }
.status-delivering { background: #e8f5e9; color: #2e7d32; }
.status-delivered { background: #f1f8e9; color: #558b2f; }
.status-cancelled { background: #ffebee; color: #c62828; }

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

/* 라이더 위치 맵 */
@keyframes bounce { from { transform: translate(-50%,-50%) scale(1); } to { transform: translate(-50%,-50%) scale(1.15); } }
#riderListPanel > div:hover { background: #f8f9fa; }

/* 반응형 */
@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar-header h4, .sidebar-header small, .sidebar .nav-link span { display: none; }
    .content { margin-left: 60px; }
}
