/* ForgeWright Console Mockup */
.fw-console-mockup {
  background: #111827;
  border-radius: 12px;
  border: 1px solid #1f2937;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #d1d5db;
  width: 100%;
  aspect-ratio: 16 / 9;
  font-size: 10px;
}

.fw-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 40px;
  background: #1f2937;
  border-bottom: 1px solid #374151;
}

.fw-header-left, .fw-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fw-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
}

.fw-header-nav {
  display: flex;
  gap: 16px;
  margin-left: 16px;
}
.fw-header-nav a {
  color: #9ca3af;
  text-decoration: none;
}
.fw-header-nav a:hover {
  color: #fff;
}

.fw-search {
  display: flex;
  align-items: center;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 4px 8px;
  gap: 6px;
}
.fw-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 10px;
  width: 120px;
}

.fw-header-icons {
  display: flex;
  gap: 12px;
  color: #9ca3af;
}
.fw-bell-wrapper {
  position: relative;
}
.fw-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 9px;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-avatar {
  background: #374151;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.fw-mockup-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.fw-sidebar-rail {
  width: 64px;
  background: #0f172a;
  border-right: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.fw-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #64748b;
  cursor: pointer;
}
.fw-rail-item:hover, .fw-rail-item.active {
  color: #38bdf8;
}
.fw-rail-item.active {
  position: relative;
}
.fw-rail-item.active::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #38bdf8;
  border-radius: 0 4px 4px 0;
}
.fw-rail-item span {
  font-size: 9px;
}

.fw-rail-logo {
  background: #2563eb;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.fw-rail-spacer {
  flex: 1;
}

.fw-sidebar-menu {
  width: 180px;
  background: #111827;
  border-right: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
}

.fw-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0px;
}
.fw-btn-add {
  background: #1f2937;
  border: 1px solid #374151;
  color: #fff;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.fw-worker-card {
  margin: 0 12px 8px;
  padding: 10px;
  background: #1f2937;
  border-radius: 6px;
  border: 1px solid transparent;
}
.fw-worker-card.active {
  border-color: #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.fw-wc-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.fw-wc-title {
  color: #fff;
  font-weight: 500;
}
.fw-wc-badge {
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}
.fw-wc-badge.completed {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.fw-wc-badge.running {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: fwBadgePulse 2s infinite;
}
@keyframes fwBadgePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.fw-wc-id {
  color: #6b7280;
  font-size: 9px;
  margin-bottom: 8px;
}
.fw-wc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #9ca3af;
}
.fw-wc-task {
  color: #e5e7eb;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100px;
}

.fw-menu-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}
.fw-ml-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #9ca3af;
  cursor: pointer;
}
.fw-ml-item:hover {
  background: #1f2937;
  color: #fff;
}

.fw-user-profile {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
}
.fw-up-avatar {
  background: #374151;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.fw-up-name {
  color: #fff;
}
.fw-up-role {
  font-size: 9px;
}

.fw-main-area {
  flex: 1;
  background: #0b1120;
  padding: 16px;
  display: flex;
  gap: 16px;
}
.fw-terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.fw-term-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fw-term-window {
  background: #050505;
  border: 1px solid #1f2937;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.fw-window-tall {
  flex: 1;
}

.fw-term-header {
  background: #111827;
  padding: 6px 12px;
  border-bottom: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fw-term-controls {
  display: flex;
  gap: 8px;
  color: #4b5563;
}

.fw-term-body {
  padding: 10px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  flex: 1;
  overflow: hidden;
  font-size: 8px;
}
.fw-term-footer {
  padding: 6px 12px;
  border-top: 1px solid #1f2937;
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 10px;
}

.fw-tl { margin-bottom: 4px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-text-blue { color: #60a5fa; }
.fw-text-green { color: #34d399; }
.fw-text-yellow { color: #fbbf24; }
.fw-text-red { color: #f87171; }
.fw-text-gray { color: #6b7280; }

.fw-cursor {
  display: inline-block;
  width: 6px;
  height: 10px;
  background-color: currentColor;
  margin-left: 4px;
  animation: fwBlink 1s step-end infinite;
}
@keyframes fwBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.fw-diff-body .fw-tl { padding: 0 4px; border-radius: 2px; }
.fw-diff-body .fw-text-red { background: rgba(248, 113, 113, 0.1); }
.fw-diff-body .fw-text-green { background: rgba(52, 211, 153, 0.1); }

@media (max-width: 1024px) {
  .fw-console-mockup {
    font-size: 9px;
  }
  .fw-sidebar-rail, .fw-sidebar-menu {
    display: none;
  }
  .fw-terminal-grid {
    grid-template-columns: 1fr;
  }
}
