/* Custom styles to supplement Tailwind */
html {
  font-size: 14px; /* Proportionally reduces entire app scale by 2px (16px base -> 14px base) */
}

body, button, input, select, textarea, .sf-input {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  background-color: #fafafa;
  color: #334155;
}

body {
  padding-bottom: 1.75rem; /* Room for Salesforce bottom utility bar */
}

h1, h2, h3, h4, h5, h6, .brand-logo, .font-bree {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important; /* Soft medium weight instead of heavy bold */
  letter-spacing: -0.01em;
}

/* App Launcher Icon Grid */
.app-launcher-icon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 16px;
  height: 16px;
}
.app-launcher-icon div {
  background-color: #706e6b;
  border-radius: 1px;
}
.app-launcher-btn:hover .app-launcher-icon div {
  background-color: #525252;
}

/* Workspace Tabs */
.workspace-tab {
  position: relative;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-top: 3px solid transparent;
  border-right: 1px solid #dddbda;
  margin-right: 2px;
}
.workspace-tab.active {
  background-color: white;
  border-top: 3px solid #525252;
  border-right: 1px solid #dddbda;
  border-left: 1px solid #dddbda;
}
.workspace-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: white;
  z-index: 10;
}

.workspace-tab:not(.active) {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #dddbda;
}
.workspace-tab:not(.active):hover {
  background-color: #f3f2f2;
}

/* Salesforce Path (Chevron Progress Bar) */
.path-container {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  height: 28px;
}
.path-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0;
  line-height: 28px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  background-color: #f1f5f9;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  margin-right: -12px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  transition: all 0.2s ease;
  cursor: pointer;
  outline: none;
}
.path-step:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}
.path-step:active {
  transform: scale(0.98);
}
.path-step:first-child {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.path-step:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
  margin-right: 0;
}
.path-step.active {
  background-color: #525252 !important;
  color: #ffffff !important;
  border-color: #525252 !important;
  font-weight: 600;
  z-index: 10;
}
.path-step.completed {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

/* Component Boxes */
.sf-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.sf-input {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
.sf-input:focus {
  border-color: #525252;
  outline: none;
  box-shadow: 0 0 3px #525252;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
