*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

#app {
  min-height: 100vh;
}

.lc-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  box-sizing: border-box;
}

.lc-row {
  width: 100%;
  box-sizing: border-box;
}

.lc-container {
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.lc-text {
  white-space: pre-line;
}

.lc-header {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  white-space: pre-line;
}

.lc-link {
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
}

.lc-link:hover {
  text-decoration: underline;
}

.lc-btn {
  padding: 10px 20px;
  background: #7c3aed;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.lc-btn:hover {
  background: #5b21b6;
}

.lc-input,
.lc-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.lc-input:focus,
.lc-select:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
}

.lc-checkbox,
.lc-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.lc-checkbox input,
.lc-radio-option input {
  width: 16px;
  height: 16px;
}

.lc-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lc-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.lc-navbar__brand img {
  height: 38px;
  width: auto;
  display: block;
}

.lc-navbar__links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lc-navbar__item a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.lc-navbar__item a:hover {
  background: #f3f4f6;
}

.lc-navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lc-navbar__dropdown {
  position: relative;
}

.lc-navbar__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

.lc-navbar__dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 20;
}

.lc-navbar__dropdown:hover .lc-navbar__dropdown-menu {
  display: flex;
}

.lc-navbar__dropdown-link {
  padding: 10px 14px;
  color: #111827;
  text-decoration: none;
  display: block;
}

.lc-navbar__dropdown-link:hover {
  background: #f3f4f6;
}

/* ── Table ────────────────────────────────────────────── */
.lc-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.lc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.lc-table thead tr {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.lc-table th {
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.lc-table td {
  padding: 11px 16px;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.lc-table tbody tr:last-child td {
  border-bottom: none;
}

.lc-table tbody tr.lc-table__row--alt td {
  background: #f9fafb;
}

.lc-table tbody tr:hover td {
  background: #f0f9ff;
}

.lc-table__th--sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.lc-table__th--sortable:hover {
  background: #f3f4f6;
}

.lc-table__th--active {
  color: #7c3aed;
}

.lc-th-sort {
  margin-left: 6px;
  font-size: 0.75rem;
  opacity: 0.6;
}

.lc-table__th--active .lc-th-sort {
  opacity: 1;
}

.lc-table__actions {
  white-space: nowrap;
}

.lc-table-search-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.lc-table-search {
  width: 25%;
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.lc-table-search:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 1px;
}

/* ── Pagination ───────────────────────────────────────────── */
.lc-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-table-info {
  white-space: nowrap;
}

.lc-pagination {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lc-page-btn {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  min-width: 32px;
  line-height: 1.4;
}

.lc-page-btn:hover:not(:disabled) {
  background: #f3f4f6;
}

.lc-page-btn--active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  cursor: default;
}

.lc-page-btn:disabled:not(.lc-page-btn--active) {
  opacity: 0.4;
  cursor: not-allowed;
}

.lc-page-ellipsis {
  padding: 4px 6px;
  color: #9ca3af;
}

.lc-per-page {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lc-per-page select {
  padding: 4px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #ffffff;
}

.lc-btn--sm {
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 5px;
}

/* ── Divider ──────────────────────────────────────────── */
.lc-divider {
  border: none;
  width: 100%;
  box-sizing: border-box;
}

/* ── Badge ────────────────────────────────────────────── */
.lc-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

/* ── Spinner ──────────────────────────────────────────── */
@keyframes lc-spin {
  to { transform: rotate(360deg); }
}

.lc-spinner {
  border-style: solid;
  border-color: transparent;
  border-radius: 50%;
  animation: lc-spin 0.7s linear infinite;
  display: inline-block;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* ── Card ─────────────────────────────────────────────── */
.lc-card {
  box-sizing: border-box;
  width: 100%;
}
