* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

#root {
  width: 100%;
  min-height: 100vh;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
.file-menu {
  position: relative;
  display: inline-block;
}

.file-menu-button {
  background-color: #34495e;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.file-menu-button:hover {
  background-color: #4a6741;
}

.file-menu-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

.file-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
  padding: 0.25rem 0;
  margin-top: 2px;
}

.file-menu-item {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: #2c3e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.file-menu-item:hover:not(:disabled) {
  background-color: #f8f9fa;
}

.file-menu-item:disabled {
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.file-menu-item:focus {
  outline: none;
  background-color: #e9ecef;
}

.menu-item-text {
  flex: 1;
}

.menu-item-shortcut {
  font-size: 0.8rem;
  color: #6c757d;
  margin-left: 1rem;
}

.file-menu-separator {
  height: 1px;
  background-color: #dee2e6;
  margin: 0.25rem 0;
}

.file-menu-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.file-menu-dialog {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.file-menu-dialog h3 {
  margin: 0 0 1.5rem 0;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.file-menu-dialog .form-group {
  margin-bottom: 1.5rem;
}

.file-menu-dialog .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.file-menu-dialog .form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #bdc3c7;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.file-menu-dialog .form-group input:focus {
  outline: none;
  border-color: #3498db;
}

.file-menu-dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.file-menu-dialog-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  min-width: 80px;
}

.file-menu-dialog-actions .save-btn {
  background-color: #007bff;
  color: white;
}

.file-menu-dialog-actions .save-btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.file-menu-dialog-actions .save-btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.6;
}

.file-menu-dialog-actions .cancel-btn {
  background-color: #6c757d;
  color: white;
}

.file-menu-dialog-actions .cancel-btn:hover:not(:disabled) {
  background-color: #5a6268;
}

.file-menu-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem;
  border-radius: 4px;
  font-weight: 500;
  z-index: 1500;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.file-menu-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.file-menu-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animation for dropdown */
.file-menu-dropdown {
  animation: fadeIn 0.15s ease-out;
  transform-origin: top left;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation for dialog */
.file-menu-dialog-overlay {
  animation: overlayFadeIn 0.2s ease-out;
}

.file-menu-dialog {
  animation: dialogSlideIn 0.2s ease-out;
}

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

@keyframes dialogSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .file-menu-dialog {
    width: 95%;
    margin: 0 auto;
  }
  
  .file-menu-message {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
}
.rules-menu {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
}

.rules-menu-button {
  background-color: #34495e;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.rules-menu-button:hover {
  background-color: #4a6741;
}

.rules-menu-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.5);
}

.rules-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 280px;
  padding: 0.25rem 0;
  margin-top: 2px;
  animation: fadeIn 0.15s ease-out;
  transform-origin: top left;
}

.rules-menu-item {
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  color: #2c3e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.rules-menu-item:hover:not(:disabled) {
  background-color: #f8f9fa;
}

.rules-menu-item:focus {
  outline: none;
  background-color: #e9ecef;
}

.rules-menu-item.disabled {
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.rules-menu-item.disabled:hover {
  background-color: transparent;
}

.menu-item-text {
  flex: 1;
  text-align: left;
}

.rule-status {
  font-weight: bold;
  font-size: 1rem;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.rule-status.enabled {
  color: #28a745;
}

.rule-status.disabled {
  color: #dc3545;
}

.rules-menu-item.disabled .rule-status {
  color: #9ca3af;
}

/* Animation for dropdown */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rules-menu-dropdown {
    min-width: 250px;
  }
}
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-header h1 {
  margin: 0;
  font-size: 2rem;
  flex: 1;
  text-align: center;
}

.panel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.nav-button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #34495e;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.nav-button:hover:not(:disabled) {
  background-color: #4a6741;
}

.nav-button.active {
  background-color: #3498db;
}

.nav-button.completed {
  background-color: #27ae60;
}

.nav-button:disabled {
  background-color: #7f8c8d;
  cursor: not-allowed;
  opacity: 0.6;
}

.app-content {
  display: flex;
  flex: 1;
  gap: 1rem;
  padding: 1rem;
}

.main-panel {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-panel h2 {
  margin-top: 0;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.panel-content {
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #bdc3c7;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: #7f8c8d;
  font-size: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.panel-controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ecf0f1;
  flex-wrap: wrap;
}

.panel-controls button {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.panel-controls button:first-child {
  background-color: #95a5a6;
  color: white;
}

.panel-controls button:nth-child(2) {
  background-color: #3498db;
  color: white;
}

.panel-controls .back-to-select {
  background-color: #6c757d;
  color: white;
}

.panel-controls button:hover:not(:disabled) {
  opacity: 0.9;
}

.panel-controls button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.6;
}

.mass-sidebar {
  width: 300px;
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 1rem;
}

.mass-tracker,
.cost-tracker {
  margin-bottom: 2rem;
}

.mass-tracker h3,
.cost-tracker h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.2rem;
  border-bottom: 1px solid #ecf0f1;
  padding-bottom: 0.5rem;
}

.mass-item,
.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.mass-item:last-child {
  border-bottom: none;
  font-weight: 600;
}

.mass-item.overweight {
  color: #e74c3c;
  font-weight: 600;
}

.warning {
  background-color: #ffe6e6;
  color: #c0392b;
  padding: 0.75rem;
  border-radius: 4px;
  border-left: 4px solid #e74c3c;
  font-weight: 600;
  margin-top: 1rem;
}

.validation-info {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.validation-info h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
}

.validation-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.validation-info li {
  padding: 0.25rem 0;
  font-weight: 500;
}

.validation-info li.valid {
  color: #27ae60;
}

.validation-info li.invalid {
  color: #e74c3c;
}

.engines-horizontal-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.engine-group {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 0;
}

.engine-group h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
}

.fuel-horizontal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.fuel-selection {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
}

.fuel-summary {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
}

.fuel-summary h4 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
}

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

.fuel-summary th,
.fuel-summary td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.fuel-summary .total-row {
  border-top: 2px solid #2c3e50;
  font-weight: 600;
}

.ship-basic-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ship-description-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.weapons-grouped-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.weapon-group-row {
  display: grid;
  gap: 1rem;
}

.weapon-group-row:nth-child(1),
.weapon-group-row:nth-child(2),
.weapon-group-row:nth-child(5) {
  grid-template-columns: repeat(3, 1fr);
}

.weapon-group-row:nth-child(3),
.weapon-group-row:nth-child(4),
.weapon-group-row:nth-child(6) {
  grid-template-columns: repeat(2, 1fr);
}

.defenses-grouped-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.defense-group-row {
  display: grid;
  gap: 1rem;
}

.defense-group-row:nth-child(1) {
  grid-template-columns: repeat(3, 1fr);
}

.defense-group-row:nth-child(2) {
  grid-template-columns: repeat(2, 1fr);
}

.facilities-grouped-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.facility-group-row {
  display: grid;
  gap: 1rem;
}

.facility-group-row:nth-child(1),
.facility-group-row:nth-child(2) {
  grid-template-columns: repeat(3, 1fr);
}

.facility-group-row:nth-child(3) {
  grid-template-columns: repeat(5, 1fr);
}

.facility-group-row:nth-child(4) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.cargo-grouped-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cargo-group-row {
  display: grid;
  gap: 1rem;
}

.cargo-group-row:nth-child(1),
.cargo-group-row:nth-child(2) {
  grid-template-columns: repeat(3, 1fr);
}

.cargo-group-row:nth-child(3) {
  grid-template-columns: repeat(2, 1fr);
}

.vehicles-grouped-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.vehicle-group-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.drones-grouped-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.drone-group-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.berths-grouped-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.berth-group-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tonnage-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tonnage-control label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.tonnage-control input {
  padding: 0.25rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 0.9rem;
}

.tonnage-control small {
  color: #6c757d;
  font-size: 0.8rem;
}

.service-interval {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.service-interval h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.service-info p {
  margin: 0.5rem 0;
}

.service-calculation {
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

.ship-name-input-container {
  position: relative;
}

.ship-name-input-container input.name-conflict {
  border-color: #ffc107;
  background-color: #fff3cd;
}

.name-check-status {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

.name-check-status.checking {
  color: #6c757d;
}

.name-check-status.conflict {
  color: #856404;
}

.ship-name-conflict-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.conflict-dialog-content {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.conflict-dialog-content h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 0.5rem;
}

.existing-ship-info {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
}

.existing-ship-info p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #2c3e50;
}

.existing-ship-info ul {
  margin: 0;
  padding-left: 1.5rem;
}

.existing-ship-info li {
  margin: 0.25rem 0;
  color: #495057;
}

.conflict-dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.conflict-dialog-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
}

.load-existing-btn {
  background-color: #3498db;
  color: white;
}

.load-existing-btn:hover:not(:disabled) {
  background-color: #2980b9;
}

.load-existing-btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.6;
}

.change-name-btn {
  background-color: #27ae60;
  color: white;
}

.change-name-btn:hover {
  background-color: #229954;
}

.keep-name-btn {
  background-color: #f39c12;
  color: white;
}

.keep-name-btn:hover {
  background-color: #e67e22;
}

.overwrite-btn {
  background-color: #e74c3c;
  color: white;
}

.overwrite-btn:hover:not(:disabled) {
  background-color: #c0392b;
}

.overwrite-btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.6;
}

.engine-summary {
  margin-top: 2rem;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
}

.engine-summary h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
}

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

.engine-summary th,
.engine-summary td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.engine-summary th {
  background-color: #e9ecef;
  font-weight: 600;
  color: #2c3e50;
}

.component-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.component-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

.component-info {
  flex: 1;
}

.component-info h4 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.component-info p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

.component-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 1px solid #dee2e6;
  background-color: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.quantity-control button:hover:not(:disabled) {
  background-color: #f8f9fa;
}

.quantity-control button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-control span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.radio-group label:hover {
  background-color: #f8f9fa;
}

.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
}

.add-btn, .remove-btn, .save-btn, .load-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.add-btn {
  background-color: #28a745;
  color: white;
}

.add-btn:hover {
  background-color: #218838;
}

.remove-btn {
  background-color: #dc3545;
  color: white;
}

.remove-btn:hover {
  background-color: #c82333;
}

.save-btn {
  background-color: #007bff;
  color: white;
}

.save-btn:hover {
  background-color: #0056b3;
}

.load-btn {
  background-color: #6c757d;
  color: white;
}

.load-btn:hover {
  background-color: #5a6268;
}

.summary-section {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-section h4 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.summary-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.staff-breakdown {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1rem;
}

.staff-breakdown p {
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .app-content {
    flex-direction: column;
  }
  
  .mass-sidebar {
    width: 100%;
    position: static;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .panel-nav {
    flex-direction: column;
  }
  
  .summary-actions {
    flex-direction: column;
  }
  
  .engines-horizontal-layout {
    grid-template-columns: 1fr;
  }
  
  .fuel-horizontal-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ship-basic-info-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ship-description-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .weapon-group-row:nth-child(1),
  .weapon-group-row:nth-child(2),
  .weapon-group-row:nth-child(3),
  .weapon-group-row:nth-child(4),
  .weapon-group-row:nth-child(5),
  .weapon-group-row:nth-child(6) {
    grid-template-columns: 1fr;
  }
  
  .defense-group-row:nth-child(1),
  .defense-group-row:nth-child(2) {
    grid-template-columns: 1fr;
  }
  
  .facility-group-row:nth-child(1),
  .facility-group-row:nth-child(2),
  .facility-group-row:nth-child(3),
  .facility-group-row:nth-child(4) {
    grid-template-columns: 1fr;
  }
  
  .cargo-group-row:nth-child(1),
  .cargo-group-row:nth-child(2),
  .cargo-group-row:nth-child(3) {
    grid-template-columns: 1fr;
  }
  
  .vehicle-group-row {
    grid-template-columns: 1fr;
  }
  
  .drone-group-row {
    grid-template-columns: 1fr;
  }
  
  .berth-group-row {
    grid-template-columns: 1fr;
  }
}

.select-ship-panel {
  max-width: 600px;
  margin: 0 auto;
}

.ship-selection {
  margin-bottom: 2rem;
}

.ship-dropdown {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #bdc3c7;
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
  margin-top: 0.5rem;
}

.ship-dropdown:focus {
  outline: none;
  border-color: #3498db;
}

.ship-preview {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.ship-preview h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.ship-details p {
  margin: 0.5rem 0;
  color: #495057;
}

.ship-details strong {
  color: #2c3e50;
}

.panel-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.load-ship-button, .new-ship-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 150px;
}

.load-ship-button {
  background-color: #3498db;
  color: white;
}

.load-ship-button:hover:not(:disabled) {  
  background-color: #2980b9;
  transform: translateY(-1px);
}

.load-ship-button:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.new-ship-button {
  background-color: #27ae60;
  color: white;
}

.new-ship-button:hover {
  background-color: #229954;
  transform: translateY(-1px);
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.error-message button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.error-message button:hover {
  background-color: #c82333;
}

.save-message {
  padding: 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-weight: 500;
}

.save-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.save-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.vehicle-attribution {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.vehicle-attribution p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.vehicle-attribution a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
}

.vehicle-attribution a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.panel-attribution {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.panel-attribution p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.panel-attribution a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
}

.panel-attribution a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.ship-title-line {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #3498db;
}

.ship-title-line h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
}

.ship-components-table {
  margin-bottom: 2rem;
}

.ship-components-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border: 1px solid #dee2e6;
}

.ship-components-table th {
  background-color: #34495e;
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #2c3e50;
  border-right: 1px solid #2c3e50;
  vertical-align: top;
}

.ship-components-table th:last-child {
  border-right: none;
}

.ship-components-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e9ecef;
  border-right: 1px solid #e9ecef;
  color: #2c3e50;
  vertical-align: top;
}

.ship-components-table td:last-child {
  border-right: none;
}

.ship-components-table tbody tr:hover {
  background-color: #f8f9fa;
}

.ship-components-table th:nth-child(1),
.ship-components-table td:nth-child(1) {
  width: 15%;
  font-weight: 600;
}

.ship-components-table th:nth-child(2),
.ship-components-table td:nth-child(2) {
  width: 45%;
}

.ship-components-table th:nth-child(3),
.ship-components-table td:nth-child(3) {
  width: 20%;
  text-align: right;
}

.ship-components-table th:nth-child(4),
.ship-components-table td:nth-child(4) {
  width: 20%;
  text-align: right;
}

.fittings-controls {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.fittings-controls .form-group {
  margin-bottom: 2rem;
}

.fittings-controls h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/*# sourceMappingURL=main.a8f0016159797e6bee29.css.map*/