/* BitHeadzArtEngine Tool Styles */
.art-engine-main {
  min-height: 100vh;
  background-color: #000;
  color: #fff;
  padding-top: 80px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.tool-hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 3rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

.breadcrumb a {
  color: #4296d2;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #666;
}

.tool-hero h1 {
  font-size: 3rem;
  font-weight: 600;
  font-style: oblique;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(66, 150, 210, 0.5);
}

.tool-hero p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Tool Interface */
.tool-interface {
  margin-bottom: 4rem;
}

/* Tetris-like Grid Layout */
.interface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Configuration Panel */
.config-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(66, 150, 210, 0.2);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.config-panel h2 {
  font-size: 1.8rem;
  font-weight: 600;
  font-style: oblique;
  margin-bottom: 2rem;
  color: #fff;
  text-align: center;
}

.config-section {
  margin-bottom: 2.5rem;
}

.config-section:last-child {
  margin-bottom: 0;
}

.config-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  font-style: oblique;
  margin-bottom: 1rem;
  color: #4296d2;
}

/* Upload Area */
.upload-area {
  border: 2px dashed rgba(66, 150, 210, 0.3);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(66, 150, 210, 0.05);
}

.upload-area:hover {
  border-color: rgba(66, 150, 210, 0.6);
  background: rgba(66, 150, 210, 0.1);
}

.upload-area.dragover {
  border-color: #4296d2;
  background: rgba(66, 150, 210, 0.15);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.upload-content p {
  margin: 0.5rem 0;
  color: #ccc;
}

.upload-hint {
  font-size: 0.9rem;
  color: #666 !important;
  font-style: italic;
}

/* Uploaded Layers */
.uploaded-layers {
  margin-top: 1rem;
}

.layer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(66, 150, 210, 0.2);
  border-radius: 6px;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
}

.layer-info {
  flex: 1;
}

.layer-name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.layer-details {
  font-size: 0.8rem;
  color: #ccc;
}

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

.layer-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.layer-action-btn:hover {
  background: rgba(66, 150, 210, 0.2);
  border-color: rgba(66, 150, 210, 0.4);
}

.layer-action-btn.delete:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(66, 150, 210, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4296d2;
  background: rgba(66, 150, 210, 0.1);
  box-shadow: 0 0 10px rgba(66, 150, 210, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
}

/* Optional Layers */
.optional-layers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.optional-layer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(66, 150, 210, 0.2);
  border-radius: 6px;
  padding: 1rem;
}

.optional-layer-info {
  flex: 1;
}

.optional-layer-name {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.optional-layer-description {
  font-size: 0.8rem;
  color: #ccc;
}

.optional-layer-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch.active {
  background: #4296d2;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch.active::after {
  left: calc(100% - 22px);
}

/* Generate Button */
.generate-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #4296d2, #2d6da3);
  color: #fff;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.generate-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2d6da3, #1e4a7a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 150, 210, 0.4);
}

.generate-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.generate-button .button-icon {
  font-size: 1.2rem;
}

/* Preview Panel */
.preview-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(66, 150, 210, 0.2);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.preview-panel h2 {
  font-size: 1.8rem;
  font-weight: 600;
  font-style: oblique;
  margin-bottom: 2rem;
  color: #fff;
  text-align: center;
}

.preview-section {
  margin-bottom: 2.5rem;
}

.preview-section:last-child {
  margin-bottom: 0;
}

.preview-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  font-style: oblique;
  margin-bottom: 1rem;
  color: #4296d2;
}

/* Layer Preview */
.layer-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(66, 150, 210, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 200px;
}

.no-layers {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 0;
  padding: 2rem 0;
}

.layer-structure {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.layer-structure-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.layer-order {
  background: #4296d2;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.layer-name {
  flex: 1;
  font-weight: 600;
  color: #fff;
}

.layer-count {
  background: rgba(66, 150, 210, 0.2);
  color: #4296d2;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Generation Status */
.generation-status {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(66, 150, 210, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
}

.status-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4296d2, #2d6da3);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.status-details {
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
}

/* Download Section */
.download-content {
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(66, 150, 210, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
}

.download-content p {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-button:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Instructions Section */
.instructions-section {
  margin-top: 4rem;
  padding: 4rem 0;
  border-top: 1px solid rgba(66, 150, 210, 0.2);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(66, 150, 210, 0.02) 100%);
}

.instructions-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
}

.instructions-section h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #4296d2, #2a5a8a);
  border-radius: 2px;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.instruction-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(66, 150, 210, 0.15);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.instruction-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4296d2, #2a5a8a);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.instruction-card:hover {
  transform: translateY(-8px);
  border-color: rgba(66, 150, 210, 0.4);
  box-shadow: 0 20px 40px rgba(66, 150, 210, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.instruction-card:hover::before {
  transform: scaleX(1);
}

.instruction-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4296d2, #2a5a8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 2rem auto;
  box-shadow: 0 8px 25px rgba(66, 150, 210, 0.3);
  position: relative;
}

.instruction-number::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4296d2, #2a5a8a);
  opacity: 0.3;
  z-index: -1;
}

.instruction-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.3;
}

.instruction-card p {
  color: #b0b0b0;
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}

/* Documentation Sections */
.doc-section {
  margin-bottom: 5rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(66, 150, 210, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  position: relative;
}

.doc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 150, 210, 0.3), transparent);
}

.doc-section h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #4296d2;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 1.5rem;
}

.doc-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4296d2, #2a5a8a);
  border-radius: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 3rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(66, 150, 210, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4296d2, #2a5a8a);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(66, 150, 210, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(66, 150, 210, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1.3;
}

.feature-card p {
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card li {
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
  font-size: 0.95rem;
}

.feature-card li:before {
  content: "▶";
  color: #4296d2;
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  top: 0.2rem;
}

.feature-card strong {
  color: #fff;
  font-weight: 600;
}

.feature-card em {
  color: #888;
  font-style: italic;
}

/* Code Examples */
.code-example {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(66, 150, 210, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.code-example::before {
  content: '📁';
  position: absolute;
  top: -10px;
  left: 20px;
  background: #000;
  padding: 0 10px;
  font-size: 0.9rem;
}

.code-example code {
  color: #4296d2;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-line;
  display: block;
}

/* Usage Examples */
.usage-example {
  background: rgba(66, 150, 210, 0.03);
  border: 1px solid rgba(66, 150, 210, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
}

.usage-example::before {
  content: '💡';
  position: absolute;
  top: -10px;
  left: 20px;
  background: rgba(66, 150, 210, 0.1);
  padding: 0 10px;
  font-size: 0.9rem;
}

.usage-example p {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
}

.usage-example ul {
  margin: 0;
  padding-left: 1.5rem;
}

.usage-example li {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Responsive Design for Documentation */
@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .doc-section {
    padding: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .instructions-section h2 {
    font-size: 2.4rem;
  }
  
  .doc-section h3 {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .doc-section {
    padding: 2rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .instructions-section {
    padding: 3rem 0;
  }
  
  .instructions-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  .instructions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .doc-section {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .doc-section h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .instruction-card {
    padding: 2rem;
  }
  
  .code-example {
    padding: 1rem;
  }
  
  .code-example code {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .instructions-section h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }
  
  .doc-section h3 {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .instruction-card {
    padding: 1.5rem;
  }
  
  .code-example {
    padding: 0.8rem;
  }
  
  .code-example code {
    font-size: 0.75rem;
  }
  
  .usage-example {
    padding: 1rem;
  }
  
  .bitheadz-mobile-break {
    display: inline;
    word-break: break-all;
  }
  .bitheadz-mobile-break wbr {
    display: initial;
  }
  
  .bitheadzartengine-text {
    display: inline-block;
    line-height: 1.1;
  }
}

/* Uniqueness Warning Modal */
#uniquenessWarningModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

#uniquenessWarningModal .modal-content {
  background: #1a1a1a;
  border: 2px solid #ff6b35;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

#uniquenessWarningModal .modal-header h3 {
  color: #ff6b35;
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  font-weight: 600;
}

#uniquenessWarningModal .modal-body {
  text-align: left;
  margin-bottom: 2rem;
}

#uniquenessWarningModal .modal-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #fff;
}

#uniquenessWarningModal .modal-body strong {
  color: #ff6b35;
}

#uniquenessWarningModal .warning-options {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

#uniquenessWarningModal .warning-options p {
  margin-bottom: 0.5rem;
  color: #ff6b35;
  font-weight: 600;
}

#uniquenessWarningModal .warning-options ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #ccc;
}

#uniquenessWarningModal .warning-options li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

#uniquenessWarningModal .modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

#uniquenessWarningModal .btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

#uniquenessWarningModal .btn-secondary {
  background: #666;
  color: #fff;
}

#uniquenessWarningModal .btn-secondary:hover {
  background: #777;
}

#uniquenessWarningModal .btn-warning {
  background: #ff6b35;
  color: #fff;
}

#uniquenessWarningModal .btn-warning:hover {
  background: #ff5722;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Responsive design for warning modal */
@media (max-width: 768px) {
  #uniquenessWarningModal .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  #uniquenessWarningModal .modal-header h3 {
    font-size: 1.5rem;
  }
  
  #uniquenessWarningModal .modal-actions {
    flex-direction: column;
  }
  
  #uniquenessWarningModal .btn {
    width: 100%;
  }
}

/* Quick Start Grid */
.quickstart-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  background: rgba(66,150,210,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  justify-content: space-between;
}
.quickstep {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 220px;
  min-width: 220px;
}
.quickstep-icon {
  font-size: 2.2rem;
  color: #4296d2;
  flex-shrink: 0;
}

/* Collapsible Advanced Details */
.advanced-details-section {
  margin-bottom: 2rem;
}

.advanced-details-section .collapse-toggle {
  background: #222;
  color: #fff;
  border: 1px solid #4296d2;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.advanced-details-section .collapse-toggle:hover {
  background: #4296d2;
  color: #fff;
}

.advanced-details-section .collapse-toggle .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.advanced-details-section .collapse-toggle.active .arrow {
  transform: rotate(0deg);
}

.advanced-details-section .collapse-toggle:not(.active) .arrow {
  transform: rotate(-90deg);
}

.advanced-details-section .collapsible-content {
  display: none;
  animation: fadeIn 0.3s;
  margin-bottom: 2rem;
}

.advanced-details-section .collapsible-content.active {
  display: block;
}

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

/* Advanced Configuration Section Styling */
.advanced-config-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-subsection {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 1rem;
}

.config-subsection h3 {
  color: #4296d2;
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 0.5rem;
}

.config-subsection .form-group {
  margin-bottom: 0.75rem;
}

.config-subsection .form-group:last-child {
  margin-bottom: 0;
}

/* Collapsible Advanced Configuration */
.collapsible-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease;
}

.collapsible-header:hover {
  color: #4296d2;
}

.collapsible-header .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.collapsible-header.collapsed .arrow {
  transform: rotate(-90deg);
}

#advancedConfigContent {
  transition: all 0.3s ease;
  overflow: hidden;
}

#advancedConfigContent.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.bitheadzartengine-headline {
  font-size: 3rem;
  font-weight: 600;
  font-style: oblique;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(66, 150, 210, 0.5);
}

@media (max-width: 480px) {
  .bitheadzartengine-text {
    display: inline-block;
    line-height: 1.1;
  }
} 

/* Trait Analyzer Controls */
.trait-analyzer-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.trait-search-input {
  padding: 0.5rem 1rem;
  border: 1px solid #4296d2;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.trait-search-input:focus {
  outline: none;
  border-color: #5bb3ff;
  box-shadow: 0 0 0 2px rgba(66, 150, 210, 0.2);
}
.export-csv-btn {
  background: linear-gradient(135deg, #4296d2, #5bb3ff);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.export-csv-btn:hover {
  background: linear-gradient(135deg, #3a85c0, #4fa0e6);
  transform: translateY(-2px);
}

/* Rarity Table Styling */
.rarity-table-scroll {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 10px;
  background: #181c22;
  box-shadow: 0 2px 8px rgba(66, 150, 210, 0.08);
}
.rarity-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  font-size: 1rem;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.rarity-table thead th {
  background: #222b36;
  color: #4296d2;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #4296d2;
  text-align: left;
}
.rarity-table tbody tr {
  transition: background 0.2s;
}
.rarity-table tbody tr:nth-child(even) {
  background: #23272f;
}
.rarity-table tbody tr:nth-child(odd) {
  background: #181c22;
}
.rarity-table tbody tr:hover {
  background: #2a3a4a;
}
.rarity-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #2a2a2a;
  vertical-align: middle;
}
.rarity-table th:first-child, .rarity-table td:first-child {
  border-top-left-radius: 10px;
}
.rarity-table th:last-child, .rarity-table td:last-child {
  border-top-right-radius: 10px;
}
.rarity-summary {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
}
.no-results {
  color: #dc3545;
  margin-top: 1rem;
  text-align: center;
  font-size: 1.1rem;
}
/* End Trait Analyzer Styling */ 

/* Trait Value Distribution Chart Styling */
#chartSection canvas#traitChart {
  width: 100% !important;
  height: 38vw !important;
  max-height: 480px !important;
  min-height: 200px !important;
  display: block;
  margin: 0 auto;
}

/* Multi-Trait Heatmap Styling */
.multi-heatmap-container {
  background: #161a20;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(66,150,210,0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}
#multiTraitSelectors {
  gap: 1.5rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  display: flex;
  overflow-x: auto;
  align-items: flex-end;
}
#multiTraitSelectors > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
  max-width: 220px;
  flex: 0 0 auto;
}
#multiTraitSelectors select {
  min-width: 140px;
  max-width: 220px;
  min-height: 2.2em;
  max-height: 180px;
  overflow-y: auto;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #4296d2;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1.05rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(66,150,210,0.04);
  transition: border-color 0.2s;
}
.clear-filter-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.2rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.clear-filter-btn:hover {
  background: #b02a37;
}
@media (max-width: 1200px) {
  .multi-heatmap-container {
    padding: 1rem 0.5rem 1rem 0.5rem;
    min-width: 0;
  }
  #multiTraitSelectors {
    flex-wrap: wrap;
    gap: 1rem;
  }
  #multiTraitSelectors select, #multiTraitSelectors > div {
    min-width: 100%;
    max-width: 100%;
  }
  .multi-heatmap-container > div, canvas#multiTraitHeatmap {
    min-width: 0;
    max-width: 100vw;
  }
}
@media (max-width: 700px) {
  .multi-heatmap-container {
    padding: 0.5rem 0.1rem 0.5rem 0.1rem;
  }
  #multiTraitSelectors {
    gap: 0.5rem;
  }
}
/* End Multi-Trait Heatmap Styling */ 

canvas#multiTraitHeatmap {
  width: 100% !important;
  height: 38vw !important;
  max-height: 480px !important;
  min-height: 200px !important;
  display: block;
  margin: 0 auto;
} 

.multi-heatmap-scroll-hint {
  color: #6b7280;
  font-size: 0.98rem;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}
@media (max-width: 700px) {
  #chartSection canvas#traitChart,
  canvas#multiTraitHeatmap {
    font-size: 1.1rem !important;
  }
  .multi-heatmap-scroll-hint {
    font-size: 1.08rem;
  }
  .multi-heatmap-container {
    padding: 0.5rem 0.1rem 0.5rem 0.1rem;
  }
  #multiTraitSelectors {
    gap: 0.5rem;
  }
} 