/* Multi-split Video Wall Styles - iSurveillance VMS 4.0 */

.view-live {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.view-header.compact {
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.layout-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.layout-selector .label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.layout-btn {
  background: transparent;
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.layout-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
}

.layout-btn.active {
  background: var(--primary);
  color: #070b19;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Video Wall Grid System */
.live-workspace {
  flex: 1;
  background: #02040b;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - 150px);
}

/* Workspace Toolbar (top of live workspace grid) */
.workspace-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  padding: 0 4px 2px 4px;
  border-bottom: none;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.workspace-title-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-title-info .editing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  animation: loss-pulse 2s infinite;
}

.workspace-title-info .panel-name-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

.btn-close-panel {
  background: rgba(238, 82, 83, 0.1);
  border: 1px solid rgba(238, 82, 83, 0.35);
  color: #ff6b6b;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-close-panel:hover {
  background: rgba(238, 82, 83, 0.25);
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(238, 82, 83, 0.4);
}

.video-wall-container {
  width: 100%;
  flex: 1;
  min-height: 0;
}

.video-wall-grid {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 100%;
  position: relative;
}

.grid-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.grid-9 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.grid-1-8 {
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
}
.grid-1-8 .video-slot:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 4;
}
.grid-12 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
.grid-16 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }
.grid-20 { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); }
.grid-25 { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); }

/* Slots */
.video-slot {
  background: rgba(14, 21, 46, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.video-slot:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

.video-slot.active {
  border-color: var(--amber);
  box-shadow: inset 0 0 12px rgba(255, 159, 67, 0.25), 0 0 10px rgba(255, 159, 67, 0.15);
}

.video-slot.empty {
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-style: dashed;
}

.slot-header {
  height: 26px;
  background: rgba(7, 11, 25, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
  z-index: 10;
}

.live-indicator-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-green-dot 1.5s infinite;
}

.slot-title {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  flex: 1;
}

.slot-fullscreen-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 3px;
  transition: all 0.2s ease;
  margin-right: 6px;
}

.slot-fullscreen-btn:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary-glow);
}

.slot-fullscreen-icon {
  width: 14px;
  height: 14px;
}

.slot-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: all 0.2s ease;
}

.slot-close-btn:hover {
  color: var(--red);
  text-shadow: 0 0 8px rgba(238, 82, 83, 0.6);
  transform: scale(1.15);
}

/* Local Grid Maximize Polish Styles (FORENSIC VMS FEEL!) */
.video-slot.maximized {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 100 !important;
  border-radius: 4px !important;
  border: 1px solid var(--amber) !important;
  box-shadow: 0 0 20px rgba(255, 159, 67, 0.25) !important;
}

.video-slot.maximized .slot-header {
  height: 38px !important;
  padding: 0 12px !important;
  background: rgba(7, 11, 25, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.video-slot.maximized .slot-title {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.video-slot.maximized .slot-fullscreen-icon {
  width: 16px !important;
  height: 16px !important;
}

.video-slot.maximized .slot-close-btn {
  font-size: 24px !important;
}

.video-slot.maximized .feed-highway-graphic {
  background: #000 !important;
}

.video-slot.maximized .cam-recording-badge {
  font-size: 9px !important;
  padding: 2px 5px !important;
}

.slot-body {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
}

.mock-cctv-feed {
  width: 100%;
  height: 100%;
  position: relative;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 5px var(--primary-glow);
  animation: scanning 4s infinite linear;
  pointer-events: none;
}

@keyframes scanning {
  0% { top: 0%; }
  100% { top: 100%; }
}

.feed-overlay-top-right {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 9px;
  color: var(--primary);
  text-align: right;
  z-index: 10;
  line-height: 1.3;
  text-shadow: 0 0 4px #000;
}

.feed-highway-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highway-svg {
  width: 80%;
  height: 80%;
}

.ai-box-pulse {
  animation: pulse-border 1.5s infinite alternate;
}

@keyframes pulse-border {
  0% { opacity: 0.6; }
  100% { opacity: 1; stroke-width: 0.8px; }
}

.cam-recording-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  background: rgba(238, 82, 83, 0.25);
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  animation: blink-badge 1s infinite alternate;
}

@keyframes blink-badge {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.feed-overlay-bottom {
  position: absolute;
  bottom: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  z-index: 10;
}

.delay-tag {
  color: var(--green);
}

/* Empty Placeholder style */
.empty-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 15px;
}

.empty-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.empty-text {
  font-size: 11px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.4);
}

.empty-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
}

/* Live Footer */
.live-footer {
  margin-top: 10px;
  background: rgba(14, 21, 46, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.live-stats {
  display: flex;
  gap: 15px;
  color: rgba(255,255,255,0.7);
}

.live-notes {
  color: rgba(255,255,255,0.35);
}

/* Real HLS Player Integration Styles */
.video-player-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hls-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

.video-osd-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  box-sizing: border-box;
}

.osd-top-row, .osd-bottom-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.osd-top-left, .osd-top-right, .osd-bottom-left, .osd-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95), 0 0 2px rgba(0,0,0,0.95);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
}

.osd-live-badge {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 2px;
  box-shadow: 0 0 5px var(--red-glow);
  animation: pulse-live 1s infinite alternate;
}

.osd-camera-id {
  color: var(--primary);
  font-weight: 700;
}

@keyframes pulse-live {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.mjpeg-image-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

/* Minimal Video Loss Overlay */
.video-loss-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #060a16;
  background-image: 
    linear-gradient(rgba(255, 71, 87, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 71, 87, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-loss-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #ff4757;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}

.video-loss-minimal .loss-svg {
  width: 36px;
  height: 36px;
  stroke: #ff4757;
  filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.6));
  animation: loss-pulse 2s infinite ease-in-out;
}

.video-loss-minimal .loss-text {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 3px;
  color: #ff4757;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
  text-transform: uppercase;
  font-weight: 700;
  animation: loss-pulse 2s infinite ease-in-out;
}

@keyframes loss-pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* ==========================================================================
   Saved Panels Area & Glassmorphism UI
   ========================================================================== */

.saved-panels-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  height: calc(100vh - 210px);
  background: #02040b;
}

.saved-panels-deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Glassmorphism Card Style */
.saved-panel-card {
  background: rgba(14, 21, 46, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.saved-panel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.15), inset 0 0 10px rgba(0, 242, 254, 0.05);
}

/* Micro Grid Preview inside card */
.mini-grid-preview {
  width: 60px;
  height: 44px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: grid;
  gap: 2px;
  padding: 3px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.preview-grid-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.preview-grid-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.preview-grid-6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.preview-grid-9 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.preview-grid-1-8 {
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 1px;
}
.preview-grid-1-8 .mini-grid-cell:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 4;
}
.preview-grid-12 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
.preview-grid-16 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); }
.preview-grid-20 { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); }
.preview-grid-25 { grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); }

.mini-grid-cell {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  box-sizing: border-box;
  transition: background 0.3s;
}

.mini-grid-cell.active-cell {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 4px var(--primary-glow);
}

/* Card layout components */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-actions-spec {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.card-btn-group {
  display: flex;
  align-items: center;
}

.card-body-row {
  margin: 6px 0;
  width: 100%;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  word-break: break-all;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
  display: block;
}

.card-spec {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
}

.card-devices-list {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 30px;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.card-delete-btn {
  background: transparent;
  border: none;
  color: rgba(255, 71, 87, 0.6);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.card-delete-btn:hover {
  color: #ff4757;
  background: rgba(255, 71, 87, 0.15);
  transform: scale(1.1);
}

.card-delete-icon {
  width: 14px;
  height: 14px;
}

.card-edit-btn {
  background: transparent;
  border: none;
  color: rgba(0, 242, 254, 0.6);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  margin-right: 4px;
}

.card-edit-btn:hover {
  color: var(--primary);
  background: rgba(0, 242, 254, 0.15);
  transform: scale(1.1);
}

.card-edit-icon {
  width: 14px;
  height: 14px;
}

/* Empty Saved State */
.saved-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 280px);
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
}

.saved-empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.saved-empty-text {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.saved-empty-sub {
  font-size: 11px;
}

/* Glassmorphism Buttons in Banner */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;
  min-width: 0;
}

.btn-action-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  width: 74px;
  height: 30px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-action-glass svg {
  margin: 0 !important;
  flex-shrink: 0;
}

.btn-action-glass:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: #fff;
}

.btn-action-glass.primary {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.25);
  color: var(--primary);
  font-weight: 600;
}

.btn-action-glass.primary:hover {
  background: var(--primary);
  color: #070b19;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.btn-action-glass:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.mode-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  flex-shrink: 0;
}

.mode-selector .layout-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  width: 74px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.mode-selector .layout-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
  border-color: rgba(0, 242, 254, 0.3);
}

.mode-selector .layout-btn.active {
  background: var(--primary);
  color: #070b19;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Glassmorphism Modal Naming Dialog */
.save-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 4, 11, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

.save-modal-content {
  background: rgba(18, 28, 62, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 420px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scaleUp 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.save-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin: 0;
}

.save-modal-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.save-modal-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.save-modal-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #fff;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
}

.save-modal-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  background: rgba(0, 0, 0, 0.55);
}

.save-modal-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.save-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-glass-primary {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--primary);
  font-weight: 600;
}

.btn-glass-primary:hover {
  background: var(--primary);
  color: #070b19;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Workspace Tabs Styles */
.workspace-tabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 2px 4px;
  box-sizing: border-box;
}

/* Hide scrollbars for chrome/safari */
.workspace-tabs-row::-webkit-scrollbar {
  display: none;
}

.workspace-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
  max-width: 180px;
  box-sizing: border-box;
}

.workspace-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.workspace-tab.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: inset 0 0 8px rgba(0, 242, 254, 0.05);
}

.tab-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
  flex-shrink: 0;
}

.workspace-tab.active .tab-status-dot {
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary-glow);
}

.tab-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  transition: color 0.2s;
}

.workspace-tab.active .tab-name {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.workspace-tab:hover .tab-name {
  color: rgba(255, 255, 255, 0.85);
}

.tab-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 2px;
  line-height: 1;
  padding: 0;
}

.tab-close-btn:hover {
  color: #ffffff;
  background: rgba(238, 82, 83, 0.85);
  box-shadow: 0 0 6px rgba(238, 82, 83, 0.4);
}

