* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  min-height: 100vh;
}

/* Landing Page Styles */
.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.landing-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-header h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.landing-header p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.action-btn {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border: none;
  color: white;
  padding: 20px 40px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  min-width: 160px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, #f7931e, #ff6b35);
}

.templates-section {
  flex: 1;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.templates-header {
  text-align: center;
  margin-bottom: 40px;
}

.templates-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.templates-header p {
  color: #ccc;
  font-size: 1.1rem;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px 0;
  min-height: 200px;
}

.template-card {
  background: linear-gradient(145deg, #333, #2a2a2a);
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.template-card:hover {
  transform: translateY(-8px);
  border-color: #ff6b35;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.template-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #4a4a4a, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.template-info {
  padding: 20px;
  text-align: center;
}

.template-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #ff6b35;
}

.template-info p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* YouTube Button Styles */
.youtube-btn {
  background: #FF0000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: "Roboto", "Arial", sans-serif;
  transition: all 0.2s ease;
  margin-top: 10px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.youtube-btn:hover {
  background: #CC0000;
  transform: translateY(-1px);
}

/* Admin Mode Styles */
.template-admin-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  flex-direction: column;
  gap: 5px;
}

.admin-mode .template-admin-controls {
  display: flex;
}

.admin-btn {
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.7em;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  min-width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-btn:hover {
  background: rgba(220, 53, 69, 1);
  transform: scale(1.1);
}

.admin-btn.edit {
  background: rgba(255, 193, 7, 0.9);
}

.admin-btn.edit:hover {
  background: rgba(255, 193, 7, 1);
}

/* Admin YouTube Button Styles */
.admin-btn.youtube-active {
  background: rgba(255, 0, 0, 0.9);
  color: white;
}

.admin-btn.youtube-active:hover {
  background: rgba(255, 0, 0, 1);
}

.admin-btn.youtube-inactive {
  background: rgba(108, 117, 125, 0.9);
  color: white;
}

.admin-btn.youtube-inactive:hover {
  background: rgba(108, 117, 125, 1);
}

.admin-mode .template-card {
  position: relative;
}

.admin-indicator {
  background: linear-gradient(45deg, #dc3545, #c82333);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  display: none;
}

.admin-mode .admin-indicator {
  display: inline-block;
}

#adminToggle.admin-active {
  background: linear-gradient(135deg, #dc3545, #c82333) !important;
  border-color: rgba(220, 53, 69, 0.5) !important;
}

/* Admin-only elements */
.admin-only {
  display: none;
}

.admin-mode .admin-only {
  display: flex;
}

/* Custom Password Modal */
.password-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.password-modal.show {
  display: flex;
}

.password-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

.password-box h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.password-box input {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-family: monospace;
}

.password-box input:focus {
  outline: none;
  border-color: #ff6b35;
}

.password-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.password-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.password-btn.confirm {
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
}

.password-btn.confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.password-btn.cancel {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
}

.password-btn.cancel:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Planner Page Styles */
.planner-page {
  display: none;
  background: #f7f7f7;
  color: #333;
  min-height: 100vh;
}

.planner-page.active {
  display: block;
}

.planner-header {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
}

.planner-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Build Configuration Panel Styles */
.build-config-panel {
  background: #fff;
  border: 2px solid #ff6b35;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
}

.build-config-header {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 15px 20px;
  text-align: center;
}

.build-config-header h3 {
  margin: 0 0 5px 0;
  font-size: 1.4rem;
}

.build-config-header p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.build-config-options {
  display: flex;
  gap: 30px;
  padding: 20px;
  background: #f8f9fa;
}

.config-section {
  flex: 1;
}

.config-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff6b35;
}

.config-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-option {
  display: block;
  cursor: pointer;
  transition: all 0.2s ease;
}

.config-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.config-option-content {
  display: block;
  padding: 12px 15px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.config-option:hover .config-option-content {
  border-color: #ff6b35;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.config-option input[type="radio"]:checked + .config-option-content {
  background: linear-gradient(135deg, #fff8f5, #fff3ed);
  border-color: #ff6b35;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.3);
}

.config-option-content strong {
  display: block;
  color: #333;
  font-size: 1rem;
  margin-bottom: 2px;
}

.config-option-content span {
  display: block;
  color: #666;
  font-size: 0.85rem;
}

.config-info {
  padding: 15px 20px;
  background: #fff3ed;
  border-top: 1px solid #ffe0d3;
  font-size: 0.9rem;
  color: #666;
}

.config-info p {
  margin: 0;
}

.config-info strong {
  color: #ff6b35;
}

/* Planner Styles */
.part-group {
  background: #fff;
  border: 2px solid #0073aa;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.part-group-header {
  padding: 12px;
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, #0073aa, #005a87);
  color: white;
  user-select: none;
}

.part-group-header:hover {
  background: linear-gradient(135deg, #005a87, #004570);
}

.part-group-body {
  display: block;
  padding: 10px;
  background: #f8f9fa;
}

.part-group-body .part {
  margin-bottom: 8px;
}

.part-group-body .part:last-child {
  margin-bottom: 0;
}

.group-total {
  font-weight: bold;
  color: #fff;
  opacity: 0.9;
}

.group-toggle {
  font-weight: bold;
  color: #fff;
  transition: transform 0.2s ease;
}

.part {
  background: #fff;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.part:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.part.active {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.part-header {
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #e9e9e9;
  transition: all 0.2s ease;
}

.part:hover .part-header {
  background-color: #e0e6ea;
}

.part-body {
  display: none;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.part-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.part-fields {
  flex: 1;
  min-width: 0; /* Allows flexbox shrinking */
}

.part-image-section {
  flex-shrink: 0;
  width: 250px;
  display: flex;
  flex-direction: column;
}

.part-image-section label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.url-section {
  margin-bottom: 8px;
}

.url-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}

.url-input-row .input-url {
  flex: 1;
  margin-bottom: 0;
}

.open-url-btn {
  display: none;
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8em;
  cursor: pointer;
  white-space: nowrap;
  font-weight: bold;
  transition: all 0.2s ease;
}

.open-url-btn:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.part-body input[type="url"],
.part-body input[type="number"] {
  width: 100%;
  margin-bottom: 8px;
  padding: 6px;
}

.part-body textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 6px;
  height: 60px;
  resize: vertical;
}

.price-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-row select {
  min-width: 80px;
}

.price-row input {
  flex: 1;
  min-width: 100px;
  margin-bottom: 0 !important;
}

.total {
  font-size: 1.1rem;
  font-weight: normal;
  margin-top: 30px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
}

.total div {
  margin-bottom: 6px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.toolbar button {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.toolbar button:hover {
  background: #005a87;
}

.add-part-card {
  background: #fff;
  border: 2px dashed #0073aa;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.add-part-header {
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #f0f8ff;
  color: #0073aa;
  text-align: center;
}

/* ENHANCED CSS FOR IMAGES & SPECIFICATIONS */

/* Image upload area enhancements */
.image-upload-area {
  border: 2px dashed #ccc; 
  border-radius: 8px; 
  padding: 20px; 
  text-align: center; 
  background: #fafafa; 
  cursor: pointer; 
  transition: all 0.3s ease;
  margin-bottom: 8px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image-upload-area:hover {
  border-color: #0073aa !important;
  background: #f0f8ff !important;
  transform: translateY(-1px);
}

.image-upload-area.drag-over {
  border-color: #28a745 !important;
  background: #f0fff4 !important;
  transform: scale(1.02);
}

.image-upload-area.dragover {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff9, #e8f5e8);
  border-style: solid;
}

/* Image preview enhancements */
.preview {
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  max-width: 100%;
  border: 2px solid #0073aa;
  padding: 5px;
  border-radius: 8px;
  cursor: pointer;
}

.preview:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Remove image button styling */
.remove-image-btn {
  display: none;
  width: 100%;
  padding: 6px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 5px;
  transition: all 0.2s ease;
}

.remove-image-btn:hover {
  background: #c82333 !important;
  transform: translateY(-1px);
}

/* Specifications section styling */
.specs-header {
  cursor: pointer;
  padding: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  user-select: none;
}

.specs-header:hover {
  background: #e0e0e0 !important;
}

.specs-body {
  display: none;
  padding: 12px;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: #fafafa;
  max-height: 300px;
  overflow-y: auto;
  border-left: 4px solid #0073aa;
}

.spec-input {
  width: 100%;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.9em;
  transition: border-color 0.2s ease;
}

.spec-input:focus {
  outline: none;
  border-color: #0073aa !important;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.spec-input.filled {
  border-color: #28a745;
  background-color: #f8fff9;
}

/* Reminders section styling */
.reminders-header {
  cursor: pointer;
  padding: 8px;
  background: #fff3cd;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ffeaa7;
  transition: all 0.2s ease;
  user-select: none;
}

.reminders-header:hover {
  background: #fff8dc !important;
}

.reminders-body {
  display: none;
  padding: 12px;
  border: 1px solid #ffeaa7;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: #fffbf0;
  max-height: 250px;
  overflow-y: auto;
  border-left: 4px solid #ff6b35;
}

/* Reminder styling improvements */
.reminders-body > div > div {
  font-size: 0.9em;
  color: #333;
  line-height: 1.4;
  padding: 6px;
  background: #f9f9f9;
  border-left: 3px solid #ff6b35;
  border-radius: 3px;
  transition: all 0.2s ease;
  position: relative;
}

.reminders-body > div > div:hover {
  background: #fff8dc !important;
  transform: translateX(4px);
}

.reminders-body > div > div::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: #ff6b35;
  border-radius: 2px;
}

/* Toggle indicators */
.specs-toggle,
.reminders-toggle {
  transition: transform 0.2s ease;
  font-weight: bold;
}

/* Admin fields styling */
.admin-youtube,
.admin-difficulty,
.admin-tips {
  transition: all 0.2s ease;
}

.admin-youtube:focus,
.admin-difficulty:focus,
.admin-tips:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Enhanced form styling */
input[type="text"],
input[type="url"],
input[type="number"],
select,
textarea {
  border-radius: 4px;
  font-size: 0.9rem;
  padding: 8px;
  border: 1px solid #ccc;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

textarea {
  transition: border-color 0.2s ease;
  font-family: inherit;
}

textarea:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Label styling */
label {
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: block;
}

/* Enhanced button styling */
button {
  transition: all 0.2s ease;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Loading states */
.part.loading {
  opacity: 0.7;
  pointer-events: none;
}

.part.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Success states */
.part.has-image .part-header::after {
  content: '📷';
  margin-left: 8px;
  opacity: 0.7;
}

.part.has-url .part-header::after {
  content: '🔗';
  margin-left: 8px;
  opacity: 0.7;
}

/* Focus management */
.part-body:focus-within .part-header {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* DRAG AND DROP STYLES */

/* Drag Handle Styling */
.drag-handle {
  cursor: grab;
  color: #666;
  font-size: 1.2em;
  padding: 0 8px;
  user-select: none;
  transition: color 0.2s ease;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  cursor: move !important;
  cursor: grab !important;
  cursor: -webkit-grab !important;
  cursor: -moz-grab !important;
  touch-action: none;
  -webkit-touch-action: none;
}

.drag-handle:hover {
  color: #0073aa;
  transform: scale(1.1);
}

.drag-handle:active {
  cursor: grabbing !important;
  cursor: -webkit-grabbing !important;
  cursor: -moz-grabbing !important;
}

/* Part Header Left/Right Styling */
.part-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.part-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Delete Button Styling */
.delete-part-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.1em;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.delete-part-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  transform: scale(1.1);
}

/* Price Display Styling */
.price-display {
  font-weight: bold;
  color: #28a745;
  min-width: 80px;
  text-align: right;
}

/* Dragging State */
.part.dragging {
  opacity: 0.5;
  cursor: grabbing;
  z-index: 1000;
}

/* Drag Placeholder */
.drag-placeholder {
  border: 2px dashed #0073aa;
  background: rgba(0, 115, 170, 0.1);
  border-radius: 5px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

/* Ensure proper stacking during drag */
.part {
  position: relative;
  z-index: 1;
}

/* Part name styling */
.part-name {
  font-weight: bold;
  color: #333;
}

/* Make it clear parts are draggable */
.part[draggable="true"] {
  cursor: move;
}

.part[draggable="true"]:active {
  cursor: grabbing;
}

/* Visual indicators for part types */
.part-name:contains("Blank")::before,
.part-name:contains("Template")::before {
  content: "🪵 ";
}

.part-name:contains("Paint")::before,
.part-name:contains("Stain")::before,
.part-name:contains("Clear Coat")::before,
.part-name:contains("Primer")::before {
  content: "🎨 ";
}

.part-name:contains("Sandpaper")::before,
.part-name:contains("Polishing")::before {
  content: "🪚 ";
}

.part-name:contains("Glue")::before {
  content: "🧪 ";
}

/* Highlight new part groups */
.part-group-header:has(+ .part-group-body:has(.part-name:contains("Blank"))) {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.part-group-header:has(+ .part-group-body:has(.part-name:contains("Primer"))) {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.part-group-header:has(+ .part-group-body:has(.part-name:contains("Paint"))) {
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .landing-header h1 {
    font-size: 2.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .back-btn {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .part-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .part-image-section {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .url-input-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .open-url-btn {
    width: 100%;
  }
  
  .price-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .price-row select,
  .price-row input {
    width: 100%;
  }
  
  .build-config-options {
    flex-direction: column;
    gap: 20px;
  }
  
  .config-section {
    width: 100%;
  }
}