/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color: #172033;
  background: #f6f7fb;
  font-family: "Noto Sans JP", sans-serif;
}

body {
  margin: 0;
}

a {
  color: #3157b7;
}

.app-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  background: white;
  border-bottom: 1px solid #e4e7ec;
}

.app-navigation-brand {
  color: #172033;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.app-navigation nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-navigation form {
  margin: 0;
}

.navigation-button {
  padding: 0;
  border: 0;
  color: #475467;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dashboard-container {
  box-sizing: border-box;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.dashboard-container-narrow {
  width: min(760px, 100%);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 32px;
}

.page-header h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-header p {
  margin: 0;
  color: #667085;
}

.eyebrow {
  color: #3157b7 !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #667085;
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: #3157b7;
}

.button-secondary {
  color: #344054;
  background: white;
  border-color: #d0d5dd;
}

.button-danger {
  color: white;
  background: #b42318;
}

.form-list {
  display: grid;
  gap: 16px;
}

.form-card,
.settings-section,
.form-settings,
.empty-state,
.danger-zone {
  padding: 24px;
  background: white;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
}

.form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.form-card h2,
.settings-section h2,
.danger-zone h2,
.empty-state h2 {
  margin: 0 0 8px;
}

.form-card p,
.danger-zone p,
.empty-state p {
  margin: 0 0 12px;
  color: #667085;
}

.form-card code,
.endpoint-value code {
  overflow-wrap: anywhere;
}

.card-actions,
.form-actions {
  display: flex;
  gap: 8px;
}

.empty-state {
  padding-block: 56px;
  text-align: center;
}

.form-settings {
  display: grid;
  gap: 24px;
}

.field-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #98a2b3;
  border-radius: 8px;
  color: inherit;
  background: white;
  font: inherit;
}

.field-help {
  margin: 6px 0 0;
  color: #667085;
  font-size: 0.88rem;
}

.validation-errors,
.flash {
  padding: 14px 16px;
  border-radius: 8px;
}

.validation-errors {
  color: #7a271a;
  background: #fef3f2;
  border: 1px solid #fecdca;
}

.validation-errors p {
  margin-top: 0;
  font-weight: 700;
}

.validation-errors ul {
  margin-bottom: 0;
}

.flash-notice {
  margin-bottom: 20px;
  color: #05603a;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.settings-section {
  margin-bottom: 20px;
}

.endpoint-value {
  margin-top: 16px;
  padding: 14px;
  background: #f2f4f7;
  border-radius: 8px;
}

.settings-list {
  margin: 0;
}

.settings-list > div {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eaecf0;
}

.settings-list > div:last-child {
  border-bottom: 0;
}

.settings-list dt {
  font-weight: 700;
}

.settings-list dd,
.settings-list ul {
  margin: 0;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: #fecdca;
}

@media (max-width: 640px) {
  .dashboard-container {
    padding: 28px 16px 56px;
  }

  .page-header,
  .form-card,
  .danger-zone {
    flex-direction: column;
    align-items: stretch;
  }

  .card-actions,
  .form-actions {
    flex-wrap: wrap;
  }

  .settings-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
