<template>
  <router-view />
</template>

<script setup>
</script>

<style>
/* CSS Variables */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --primary: #3b82f6;
  --primary-weak: #eff6ff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

html, body, #app {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page {
  padding: 22px;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Element Plus overrides for a softer look */
.el-button {
  border-radius: 8px;
  font-weight: 500;
}
.el-button--primary {
  --el-button-bg-color: #3b82f6;
  --el-button-border-color: #3b82f6;
  --el-button-hover-bg-color: #2563eb;
  --el-button-hover-border-color: #2563eb;
}
.el-input__wrapper {
  border-radius: 10px;
}
.el-tag {
  border-radius: 6px;
}
.el-dialog {
  border-radius: 16px;
}
.el-dialog__header {
  padding: 18px 20px 10px;
  font-weight: 700;
}
.el-dialog__body {
  padding: 10px 20px 18px;
}
.el-table {
  --el-table-header-bg-color: #f9fafb;
  --el-table-row-hover-bg-color: #f3f4f6;
  --el-table-border-color: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.el-table th.el-table__cell {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}
.el-pagination .btn-prev,
.el-pagination .btn-next,
.el-pager li {
  border-radius: 8px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
</style>
