/*
 * 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.
 */

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  color: #261b23;
  background: #fff;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #e6e6e6;
}

.app-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b6e4f;
  text-decoration: none;
}

.app-nav__signout button,
.app-nav__signout {
  background: none;
  border: 0;
  color: #0b6e4f;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.app-main {
  padding: 1.5rem;
}

.flash {
  padding: 0.75rem 1.5rem;
}

.connections {
  margin-top: 1.5rem;
}

.connection {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e6e6e6;
}

.connection__name {
  font-weight: 600;
}

.connection__status--connected {
  color: #0b6e4f;
}

.connection__status--disconnected {
  color: #8a8a8a;
}

.connection__detail {
  color: #8a8a8a;
  font-size: 0.9rem;
}

.connection__action {
  margin-left: auto;
}

.connection__action--connect {
  background: #fc4c02; /* Strava orange — TODO: replace with brand-compliant button (follow-up) */
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-weight: 600;
}

.connection__action--disconnect button,
.connection__action--disconnect {
  background: none;
  border: 1px solid #cfcfcf;
  color: #261b23;
  cursor: pointer;
  font: inherit;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
}
