/* Google Web Fonts (Pretendard or Inter style) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5; /* 세련된 인디고 블루 */
    --primary-hover: #4338ca;
    --bg-color: #f3f4f6;      /* 차분한 회색 배경 */
    --sidebar-bg: #1e293b;    /* 짙은 네이비 */
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* 사이드바 스타일 */
.sidebar {
    background-color: var(--sidebar-bg);
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
}
.sidebar .nav-link {
    color: #cbd5e1;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

/* 카드 디자인 (둥글고 부드러운 그림자) */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: #fff;
    transition: transform 0.2s;
}
.card-header {
    background-color: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}
.card-body {
    padding: 1.5rem;
}

/* 테이블 디자인 */
.table thead th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
}
.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* 배지 (Soft Badges) */
.badge-soft-primary { background-color: #e0e7ff; color: #4338ca; }
.badge-soft-success { background-color: #dcfce7; color: #15803d; }
.badge-soft-danger  { background-color: #fee2e2; color: #b91c1c; }
.badge-soft-dark    { background-color: #f1f5f9; color: #475569; }
.badge { padding: 0.5em 0.75em; border-radius: 0.375rem; font-weight: 600; }

/* 폼 요소 */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* 버튼 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}
