/**
 * Vectors - Vector Diagram Tool Styles
 */

/* Override default body styling for vectors page - must be very specific */
body:has(.vectors-container) {
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
  padding: 0 !important;
  overflow: auto !important;
}

/* Override default main styling for vectors page */
.vectors-page {
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  height: 100vh;
  overflow: hidden;
  width: 100%;
  max-width: none;
}

.vectors-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #f5f5f5;
  color: #1f2937; /* dark text so content is visible on light background */
  position: relative;
}

.vectors-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vectors-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 600;
}

.subdomain-badge,
.route-badge {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.95;
}

.subdomain-badge strong {
  background: rgba(255,255,255,0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}

.vectors-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.vectors-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  color: #1f2937;
}

.vectors-toolbar .btn-primary {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.vectors-toolbar .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vectors-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.vectors-sidebar {
  width: 250px;
  background: white;
  border-right: 1px solid #e0e0e0;
  padding: 1rem;
  overflow-y: auto;
}

.vectors-sidebar h3 {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tool-palette {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.tool-btn:hover {
  background: #f5f5f5;
  border-color: #667eea;
}

.tool-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.diagram-list {
  max-height: 400px;
  overflow-y: auto;
}

.empty-state {
  color: #999;
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  padding: 2rem 1rem;
}

.vectors-canvas {
  flex: 1;
  background: #fafafa;
  position: relative;
  overflow: hidden;
}

.canvas-container {
  position: absolute;
  inset: 0;
  background: white;
  margin: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vectors-properties {
  width: 300px;
  background: white;
  border-left: 1px solid #e0e0e0;
  padding: 1rem;
  overflow-y: auto;
}

.properties-panel {
  padding: 1rem 0;
}

.vectors-footer {
  background: #2c3e50;
  color: white;
  padding: 0.5rem 2rem;
  font-size: 0.75rem;
}

.status-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-info .separator {
  opacity: 0.5;
}

.subdomain-indicator {
  color: #4ade80;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .vectors-properties {
    width: 250px;
  }
}

@media (max-width: 768px) {
  .vectors-sidebar,
  .vectors-properties {
    display: none;
  }

  .vectors-toolbar {
    flex-wrap: wrap;
  }
}
