/* Plate Manager Styles */

.plate-manager-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.plate-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.plate-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.plate-item {
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
  transition: all 0.2s;
}

.plate-item:hover {
  background: #e9ecef;
  cursor: pointer;
}

.plate-item.active {
  background: #d1ecf1;
  border-color: #0c5460;
}

.plate-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.plate-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.plate-item-stats {
  margin-bottom: 0.5rem;
}

.plate-item-actions {
  display: flex;
  gap: 0.5rem;
}

/* Well Grid Styles */

.well-grid-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.well-grid {
  display: inline-block;
  border: 2px solid #495057;
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.well-grid-row {
  display: flex;
  gap: 2px;
}

.well-grid-corner {
  width: 32px;
  height: 32px;
  background: #495057;
  border-radius: 4px;
}

.well-grid-header {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #495057;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 4px;
}

.well-grid-cell {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.2rem;
}

.well-grid-cell:hover {
  background: #e9ecef;
  transform: scale(1.1);
}

.well-grid-cell.filled {
  background: #28a745;
  color: white;
  border-color: #1e7e34;
}

.well-grid-cell.filled:hover {
  background: #218838;
}

.well-grid-cell.highlight-animation {
  animation: highlight-pulse 1s;
}

@keyframes highlight-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
}

/* Plate Info Panel */

.plate-info-panel {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.plate-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #dee2e6;
}

.plate-info-item:last-child {
  border-bottom: none;
}

.plate-info-label {
  font-weight: 600;
  color: #495057;
}

.plate-info-value {
  font-size: 1.1rem;
  color: #212529;
}

/* Button Styles */

.plate-action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.plate-export-btn {
  background: #17a2b8;
  border-color: #17a2b8;
}

.plate-export-btn:hover {
  background: #138496;
  border-color: #117a8b;
}

/* Responsive Design */

@media (max-width: 768px) {
  .well-grid-cell,
  .well-grid-header,
  .well-grid-corner {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .plate-manager-container {
    padding: 1rem;
  }
}

@media (min-width: 1400px) {
  .well-grid-cell,
  .well-grid-header,
  .well-grid-corner {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* 384-well plate styling (smaller cells) */

.well-grid[data-plate-type="384"] .well-grid-cell,
.well-grid[data-plate-type="384"] .well-grid-header,
.well-grid[data-plate-type="384"] .well-grid-corner {
  width: 20px;
  height: 20px;
  font-size: 0.6rem;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* DNA Designer Layout */
.dna-designer-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 300px;
  min-width: 300px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.main-content {
  flex: 1;
  background: #f8f9fa;
  overflow: hidden;
}

.application-window {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.controls-panel {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.visualization-panel {
  flex: 1;
  position: relative;
  background: #ffffff;
  padding: 15px;
}

.threejs-scene {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

/* Bootstrap Overrides for DNA Designer */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar Navigation Styling */
.sidebar .nav-link {
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(2px);
}

.sidebar .nav-link.active {
  background: #0d6efd !important;
}

/* Action Tabs Styling */
.nav-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding: 12px 20px;
}

.nav-tabs .nav-link.active {
  background: white;
  color: #0d6efd;
  border-bottom: 3px solid #0d6efd;
}

.nav-tabs .nav-link:hover {
  color: #0d6efd;
  border-color: transparent;
}

/* Form Enhancements */
.form-control:focus, .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-control-color {
  width: 60px;
  height: 38px;
  padding: 2px;
}

/* Button Enhancements */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Authentication Section */
.sidebar-auth {
  background: rgba(0, 0, 0, 0.1);
}

.avatar {
  font-size: 1.2rem;
}

/* Analysis Cards */
.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 250px;
    min-width: 250px;
  }
  
  .nav-tabs .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
