/* MultiShop — design system (CSS pur, compatible Tailwind CDN) */

body.ms-app {
  font-feature-settings: "kern" 1, "liga" 1;
}

.ms-card {
  border-radius: 1rem;
  border: 1px solid rgba(63, 63, 70, 0.9);
  background: rgba(24, 24, 27, 0.7);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ms-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(16, 185, 129, 0.9);
}

.ms-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
}

.ms-input,
.ms-select,
.ms-textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(63, 63, 70, 0.9);
  background: #09090b;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: #f4f4f5;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ms-input:focus,
.ms-select:focus,
.ms-textarea:focus {
  outline: none;
  border-color: rgba(5, 150, 105, 0.6);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.ms-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #059669;
  color: #fff;
  transition: background 0.15s;
}

.ms-btn-primary:hover {
  background: #10b981;
}

.ms-btn-primary:disabled {
  opacity: 0.5;
}

.ms-settings-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .ms-settings-layout {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.ms-settings-nav {
  display: flex;
  gap: 0.375rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

@media (min-width: 1024px) {
  .ms-settings-nav {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
    position: sticky;
    top: 4.5rem;
  }
}

.ms-settings-tab {
  flex-shrink: 0;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1aa;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ms-settings-tab:hover {
  background: rgba(39, 39, 42, 0.8);
  color: #f4f4f5;
}

.ms-settings-tab.is-active {
  border-color: rgba(16, 185, 129, 0.3);
  background: #059669;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1024px) {
  .ms-settings-tab.is-active {
    border-left: 3px solid #10b981;
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    box-shadow: none;
  }
}

.ms-settings-panel {
  animation: ms-fade-in 0.2s ease-out;
}

@keyframes ms-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ms-settings-nav[role="tablist"] .ms-settings-tab[aria-selected="true"] {
  font-weight: 600;
}

@media (max-width: 1023px) {
  .ms-settings-nav {
    margin: 0 -0.25rem;
    padding: 0.25rem;
    border-radius: 1rem;
    background: rgba(24, 24, 27, 0.85);
    border: 1px solid rgba(63, 63, 70, 0.6);
  }
}

.ms-auth-card {
  backdrop-filter: blur(8px);
}

.ms-page-shell {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* Liens sidebar — classe optionnelle pour homogénéité */
.ms-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d4d4d8;
  transition: background 0.15s, color 0.15s;
}

.ms-nav-link:hover {
  background: rgba(39, 39, 42, 0.9);
  color: #fff;
}

.ms-nav-link.is-active {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25);
}
