:root {
  --primary-color: #02343f;
  --primary-light: #0a4a5a;
  --bg-primary: #fafafa;
  --bg-white: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-white: #ffffff;
  --success: #10b981;
  --error: #dc3545;
  --warning: #f59e0b;
  --border-light: #e5e7eb;
  --border-dashed: #a1a1a1;
  --font-xs: 10px;
  --font-sm: 12px;
  --font-md: 14px;
  --font-lg: 16px;
  --font-xl: 20px;
  --font-2xl: 28px;
  --sidebar-width: 250px;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "돋움",
    dotum, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--font-md);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 24px;
}

.contentTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contentTitle .material-symbols-outlined {
  font-size: 28px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}

.card-body {
  padding: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: #e5e7eb;
  color: var(--text-primary);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--error);
  color: #fff;
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled,
.btn-success:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: var(--font-xs);
  font-weight: 700;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-approved {
  background: #d1fae5;
  color: #065f46;
}

.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  max-width: calc(100vw - 40px);
  padding: 12px 16px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--error);
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--primary-color);
  color: #fff;
}

.mobile-topbar .menu-btn {
  border: none;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 45;
}

.sidebar-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .content {
    margin-left: 0;
    padding: 16px;
  }

  .mobile-topbar {
    display: flex;
  }

  .contentTitle {
    font-size: 18px;
    margin-bottom: 14px;
  }
}
