/* ── 전역 변수 및 테마 설정 ── */
:root {
    --sidebar-width: 16.25rem;
    --header-height: 3.25rem;
    --footer-height: 2.5rem;
    --main-padding: 0.6rem;
    --card-radius: 0.5rem;

    --bg-color: #e0eaf1;
    --white: #ffffff;
    --border-color: #e3e6f0;
    --sidebar-bg: #1a202c;
    --sidebar-sub-bg: rgba(0, 0, 0, 0.2);
    --sidebar-surface: #2d3748;
    --sidebar-link-color: #a0aec0;
    --sidebar-hover-bg: rgba(255, 255, 255, 0.05);
    --primary: #4e73df;
    --primary-dark: #2e59d9;
    --primary-bg: rgba(78, 115, 223, 0.07);
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --dark: #333333;
    --text-main: #3a3b45;
    --text-muted: #858796;
    --input-bg: #f8f9fc;
    --card-header-border: #f1f1f1;
    --table-head-bg: #f8f9fc;
    --scroll-box-bg: #fafafa;
    --teal: #17a2b8;
    --teal-dark: #117a8b;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --white: #1e293b;
    --border-color: #334155;
    --sidebar-bg: #020617;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --input-bg: #0f172a;
    --card-header-border: #334155;
    --table-head-bg: #0f172a;
    --scroll-box-bg: #0f172a;
}

/* ── 리셋 ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scrollbar-width: none;
}

html::-webkit-scrollbar { display: none; }

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-y: scroll;
    transition: background-color 0.2s, color 0.2s;
}

/* ── 공통 애니메이션 ── */
@keyframes spin     { 0%   { transform: rotate(0deg);              } 100% { transform: rotate(360deg);    } }
@keyframes fadeIn   { from { opacity: 0;                           } to   { opacity: 1;                   } }
@keyframes slideIn  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
