:root {
    --primary: #e31e24;
    --primary-dark: #b8161b;
    --secondary: #2c3e50;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #7f8c8d;
    --border: #dee2e6;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; background-color: var(--bg-light); color: var(--text-main); overflow: hidden; }

/* Login Screen */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50 0%, #000 100%);
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 { margin: 1.5rem 0; font-weight: 700; color: var(--secondary); }

.input-group { text-align: left; margin-bottom: 1.2rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.input-group input { width: 100%; padding: 0.8rem; border: 1px solid var(--border); border-radius: 8px; outline: none; }

.btn-block { width: 100%; justify-content: center; padding: 1rem; margin-top: 1rem; }
.login-hint { margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-muted); }

/* Sidebar & Layout */
#app { display: flex; height: 100vh; }
.sidebar { width: 260px; background-color: var(--secondary); color: var(--white); display: flex; flex-direction: column; }

.logo-container { padding: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo-text { text-decoration: none; color: inherit; font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; display: block; }
.logo-text.red { color: var(--primary); }
.logo-text span { font-weight: 300; font-size: 0.8rem; display: block; letter-spacing: 2px; color: #aaa; }

nav { flex: 1; padding: 1.5rem 0; }
nav li { padding: 1rem 2rem; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: 0.3s; }
nav li.active { background-color: var(--primary); }
nav li:hover:not(.active) { background-color: rgba(255,255,255,0.05); }

.sidebar-footer { padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }

/* Main Content */
.main-content { flex: 1; padding: 2.5rem; overflow-y: auto; }
.content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 500; cursor: pointer; border: none; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-outline { background-color: white; border: 1px solid var(--border); color: var(--text-main); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

.table-container { background: white; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.table-toolbar { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.search-wrapper { position: relative; max-width: 400px; }
.search-wrapper i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 18px; }
.search-wrapper input { width: 100%; padding: 0.7rem 1rem 0.7rem 2.5rem; border-radius: 8px; border: 1px solid var(--border); outline: none; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th { background: #f8f9fa; padding: 1rem; text-align: left; font-size: 0.85rem; border-bottom: 2px solid var(--border); }
td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

.hidden { display: none !important; }
