/* Unified Modern Workshop Icon System
 * Consistent 24x24 viewBox, 1.75px stroke, rounded caps/joins,
 * and smooth GPU-composited hover micro-animations.
 */

:root {
  --ws-icon-size: 18px;
  --ws-icon-stroke: 1.75;
  --ws-icon-color: #1e293b;
  --ws-icon-muted: #64748b;
  --ws-pill-bg: #ffffff;
  --ws-pill-hover-bg: #f8fafc;
  --ws-pill-border: #e2e8f0;
  --ws-pill-hover-border: #cbd5e1;
  --ws-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

.ws-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background-color: var(--ws-pill-bg);
  color: var(--ws-icon-color);
  border: 1px solid var(--ws-pill-border);
  border-radius: 9999px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms var(--ws-ease-spring),
    border-color 180ms var(--ws-ease-spring),
    box-shadow 200ms var(--ws-ease-spring),
    transform 180ms var(--ws-ease-spring);
}

.ws-action-btn:hover {
  background-color: var(--ws-pill-hover-bg);
  border-color: var(--ws-pill-hover-border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.ws-action-btn:active {
  transform: translateY(0) scale(0.985);
}

.ws-icon {
  width: var(--ws-icon-size);
  height: var(--ws-icon-size);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--ws-icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: transform 240ms var(--ws-ease-spring);
}

.ws-action-btn:hover .ws-icon--customer,
.ws-icon-trigger:hover .ws-icon--customer {
  transform: scale(1.06);
}

.ws-action-btn:hover .ws-icon--customer .ws-plus,
.ws-icon-trigger:hover .ws-icon--customer .ws-plus {
  transform: rotate(90deg) scale(1.08);
  transform-origin: 19px 8px;
}

.ws-action-btn:hover .ws-icon--vehicle,
.ws-icon-trigger:hover .ws-icon--vehicle {
  transform: translateX(2px);
}

.ws-action-btn:hover .ws-icon--quote,
.ws-icon-trigger:hover .ws-icon--quote {
  transform: translateY(-1.5px) rotate(-2deg);
}

.ws-action-btn:hover .ws-icon--job-card,
.ws-icon-trigger:hover .ws-icon--job-card {
  transform: translateY(-1.5px) scale(1.04);
}

.ws-action-btn:hover .ws-icon--invoice,
.ws-icon-trigger:hover .ws-icon--invoice {
  transform: translateY(-1.5px);
}

.ws-action-btn:hover .ws-icon--invoice .ws-plus,
.ws-icon-trigger:hover .ws-icon--invoice .ws-plus {
  transform: rotate(90deg) scale(1.1);
  transform-origin: 18.5px 6.5px;
}

.ws-plus,
.ws-line {
  transition: transform 240ms var(--ws-ease-spring), opacity 200ms var(--ws-ease-spring);
}

/* Brand Logo & Settings Logo Uploader */
.ws-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
}

.ws-brand-logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.ws-settings-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.ws-settings-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.ws-settings-subtitle {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: #64748b;
}

.ws-logo-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.ws-logo-preview-box {
  width: 140px;
  height: 56px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
}

.ws-logo-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ws-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ws-file-input {
  display: none;
}

.ws-secondary-btn {
  padding: 9px 14px;
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ws-secondary-btn:hover {
  background: #f1f5f9;
}

.ws-logo-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #64748b;
}

.ws-alert-success {
  padding: 10px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 13px;
  margin-bottom: 14px;
}

.ws-alert-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 13px;
  margin-bottom: 14px;
}


.ws-action-btn--icon {
  padding: 7px 10px;
  gap: 0;
}

.ws-action-btn i,
.ws-action-btn svg {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 240ms var(--ws-ease-spring, cubic-bezier(0.22, 1, 0.36, 1));
}

.ws-action-btn:hover i,
.ws-action-btn:hover svg {
  transform: translateY(-1px) scale(1.05);
}

@keyframes wsTilePopIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ws-setting-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
  color: inherit;
  cursor: pointer;
  transition: transform 220ms var(--ws-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)),
              border-color 200ms ease,
              box-shadow 220ms ease,
              background 200ms ease;
}

.ws-setting-tile:hover,
.ws-setting-tile--active {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.ws-setting-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 16px;
  flex-shrink: 0;
}

.ws-setting-tile__badge {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.ws-setting-popout {
  animation: wsTilePopIn 220ms var(--ws-ease-spring, cubic-bezier(0.22, 1, 0.36, 1)) both;
}
