@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #6366f1; /* indigo-500 */
  --secondary-color: #06b6d4; /* cyan-500 */
  --dark-bg: #111827;
  --card-bg: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  min-height: 100vh;
}

.card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #0891b2;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-control {
  width: 100%;
  padding: 0.75rem;
  background-color: #374151;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.input-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.tabs {
  display: flex;
  border-bottom: 1px solid #374151;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tab.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.mode-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode-badge.axial {
  background-color: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.mode-badge.tangential {
  background-color: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
}

.mode-badge.oblique {
  background-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.visualization-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #1f2937;
}

.canvas-container {
  width: 100%;
  height: 100%;
}

.frequency-chart {
  height: 300px;
  position: relative;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #374151;
}

.results-table th {
  background-color: #374151;
  font-weight: 600;
  color: var(--text-secondary);
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table tr:hover td {
  background-color: rgba(99, 102, 241, 0.1);
}

.draggable {
  cursor: move;
}

.dragging {
  opacity: 0.7;
  z-index: 1000;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .visualization-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab {
    flex: 1 0 auto;
    text-align: center;
  }
  
  .visualization-container {
    height: 250px;
  }
}