/* Timeline & Frame Animation Studio Styles */

.timeline-dock {
  position: fixed;
  bottom: 0;
  left: 54px;
  right: 280px;
  height: 145px;
  background: #242426;
  border-top: 1px solid #3c3c40;
  border-right: 1px solid #3c3c40;
  z-index: 9940;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #d1d5db;
  user-select: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.timeline-dock.hidden {
  display: none;
}

.timeline-toolbar {
  height: 32px;
  background: #2d2d30;
  border-bottom: 1px solid #202022;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 11px;
}

.timeline-tools-left,
.timeline-tools-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-tool-btn {
  background: #38383c;
  border: 1px solid #48484e;
  color: #ddd;
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.timeline-tool-btn:hover {
  background: #48484e;
  color: #fff;
}

.timeline-tool-btn.primary {
  background: #0078d4;
  border-color: #3b82f6;
  color: #fff;
}

.timeline-select {
  background: #1c1c1e;
  border: 1px solid #48484e;
  color: #eee;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}

/* Horizontal Frame Strip */
.timeline-strip-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #1e1e20;
}

.timeline-frame-card {
  flex: 0 0 85px;
  height: 90px;
  background: #2a2a2d;
  border: 1px solid #3c3c40;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.timeline-frame-card:hover {
  border-color: #55555c;
}

.timeline-frame-card.active {
  border-color: #0078d4;
  box-shadow: 0 0 0 1px #0078d4;
  background: #323237;
}

.timeline-frame-num {
  font-size: 10px;
  color: #888;
  width: 100%;
  text-align: left;
  padding-left: 2px;
  margin-bottom: 2px;
}

.timeline-frame-card.active .timeline-frame-num {
  color: #38bdf8;
  font-weight: 600;
}

.timeline-frame-thumb {
  width: 77px;
  height: 50px;
  background: #161618;
  border: 1px solid #36363a;
  border-radius: 2px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.timeline-frame-thumb canvas {
  max-width: 100%;
  max-height: 100%;
}

.timeline-frame-delay {
  width: 100%;
  margin-top: 4px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 9px;
  text-align: center;
  cursor: pointer;
}

.timeline-frame-delay:hover {
  color: #fff;
}
