/*
 * 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 {
  --shy-brand: #2b4c6f;
  --shy-bg: #f5f6f8;
  --shy-border: #dde1e6;
  --shy-text: #1f2933;
  --shy-danger: #b3261e;
  --shy-radius: 6px;
}

body {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--shy-bg);
  color: var(--shy-text);
  margin: 0;
}

.shy-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.shy-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--shy-brand);
  color: white;
}

.shy-nav__brand {
  font-weight: 700;
}

.shy-nav__links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex: 1;
}

.shy-nav__links a {
  color: white;
  text-decoration: none;
}

.shy-nav__links a:hover {
  text-decoration: underline;
}

.shy-nav__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shy-nav__user form.shy-btn-form {
  display: inline;
}

.shy-flash {
  padding: 0.75rem 1rem;
  border-radius: var(--shy-radius);
  margin-bottom: 1rem;
}

.shy-flash--notice {
  background: #e3f5e7;
  color: #1e5631;
}

.shy-flash--alert {
  background: #fbe6e5;
  color: var(--shy-danger);
}

.shy-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.shy-page-header h1 {
  margin: 0;
}

.shy-page-header__subtitle {
  color: #616e7c;
  margin: 0.25rem 0 0;
}

.shy-card {
  background: white;
  border: 1px solid var(--shy-border);
  border-radius: var(--shy-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.shy-card__title {
  margin-top: 0;
}

.shy-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--shy-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.shy-btn--primary {
  background: var(--shy-brand);
  color: white;
}

.shy-btn--secondary {
  background: white;
  color: var(--shy-text);
  border: 1px solid var(--shy-border);
}

.shy-btn--danger {
  background: var(--shy-danger);
  color: white;
}

/* Engine-local sub-navigation (e.g. the inventory engine's own sections) --
   distinct from Shared::NavComponent's top-level cross-module nav. */
.shy-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--shy-border);
}

.shy-subnav a {
  color: var(--shy-brand);
  text-decoration: none;
  font-size: 0.9rem;
}

.shy-subnav a:hover {
  text-decoration: underline;
}
