:root {
  --primary-color: #1E5149;
  --primary-hover: #153c36;
  --primary-light: #edf2f1;
  --text-main: #111827;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --bg-color: #F9FAFB;
  --bg-light: #FAFAFA;
  --sidebar-bg: #ffffff;
  --white: #FFFFFF;
  --danger: #dc2626;

  --dash-primary: #6cc020;
  --dash-light: #f2f9ec;
  --dash-danger: #cf222e;

  --header-height: 52px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.5;
  letter-spacing: -0.02em;
  font-size: 14px;
  overflow: hidden;
}

.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

/* --- Main Header & GNB/LNB --- */
.main-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  height: var(--header-height);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.brand h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  margin-right: 1rem;
}
.brand h1 span { color: var(--primary-color); }

.integrated-nav {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-group {
  display: flex;
  align-items: center;
  height: 100%;
}

.gnb-trigger {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  padding: 0 1rem;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.lnb-shelf {
  display: none; 
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.75rem;
  height: 60%;
  border-left: 1px solid var(--border-color);
  margin-left: 0.25rem;
  animation: fadeIn 0.2s ease-out;
}

.nav-group:hover .lnb-shelf,
.nav-group.is-showing-shelf .lnb-shelf {
  display: flex;
}

.lnb-item {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.lnb-item:hover { color: var(--primary-color); background-color: var(--bg-color); }
.lnb-item.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
  font-weight: 700;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Global Actions & Buttons --- */
.header-actions { display: flex; gap: 0.3rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.8rem;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  height: 28px;
  line-height: 1;
}

.btn i, .btn svg { width: 12px !important; height: 12px !important; }

.btn-primary { background-color: var(--primary-color); color: var(--white); border: 1px solid var(--primary-color); }
.btn-outline { background-color: transparent; color: var(--text-muted); border: 1px solid var(--border-color); }
.btn-danger { color: var(--danger) !important; border-color: var(--danger) !important; }

/* --- Layout Frame --- */
.content-area {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.view-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hidden { display: none !important; }
.text-nowrap { white-space: nowrap; }
