:root {
  color-scheme: light;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.5;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(140deg, #eef2ff 0%, #f8fafc 50%, #f1f5f9 100%);
  color: #1f2933;
  padding: 0 1rem 3rem;
}
button,
.btn {
  background: #2563eb;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
button:hover,
.btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 3px;
}
button.button--ghost {
  background: transparent;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: none;
}
button.button--ghost:hover {
  background: rgba(37, 99, 235, 0.08);
  transform: none;
  box-shadow: none;
}
button.button--danger {
  background: #dc2626;
}
button.button--danger:hover {
  background: #b91c1c;
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.22);
}
button:disabled {
  background: #cbd5f5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
input[type='text'],
input[type='number'],
input[type='file'],
input[type='password'] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
input[type='text']:focus,
input[type='number']:focus,
input[type='file']:focus,
input[type='password']:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  outline: none;
}
form.resource-form {
  display: grid;
  gap: 0.9rem;
  max-width: 30rem;
  padding: 1.3rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
form.resource-form label {
  font-weight: 600;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
form.resource-form button[type='submit'] {
  justify-self: flex-start;
}

.tabs {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.08);
  padding: 0.45rem;
  border-radius: 999px;
}

.tab-button {
  padding: 0.55rem 1.3rem;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.tab-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: #1e293b;
}

.tab-button.active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.2);
}

.tab-panel {
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.8rem;
  background: rgba(248, 250, 252, 0.9);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-panel[hidden] {
  display: none !important;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.7rem;
  color: #0f172a;
}

.section-header p {
  margin: 0;
  color: #64748b;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.empty-state {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  color: #475569;
  text-align: center;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  gap: 1rem;
}

.resource-summary {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.resource-name {
  font-weight: 600;
  color: #0f172a;
  font-size: 1.05rem;
}

.resource-meta {
  color: #64748b;
  font-size: 0.9rem;
}

.resource-actions {
  display: flex;
  gap: 0.5rem;
}

.flash {
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flash--success {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.flash--error {
  background: rgba(220, 38, 38, 0.18);
  color: #7f1d1d;
  border: 1px solid rgba(220, 38, 38, 0.4);
}
