.apt-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0;
}

.hero-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 24px 60px;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 20px;
  margin: 0 0 32px 0;
  opacity: 0.95;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-features ::ng-deep .ant-tag {
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 16px;
}

.main-content {
  max-width: 1400px;
  margin: -40px auto 0;
  padding: 0 24px 40px;
}

.upload-card {
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.upload-card ::ng-deep .ant-upload.ant-upload-drag {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  transition: all 0.3s;
}

.upload-card ::ng-deep .ant-upload.ant-upload-drag:hover {
  border-color: #1890ff;
  background: linear-gradient(135deg, #e8f4ff 0%, #d6e4ff 100%);
}

.ant-upload-drag-icon {
  font-size: 64px;
  color: #1890ff;
}

.ant-upload-text {
  font-size: 18px;
  font-weight: 500;
  color: #262626;
}

.ant-upload-hint {
  color: #8c8c8c;
}

.sample-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.sample-buttons button {
  height: 56px;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.3s;
}

.sample-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.editor-card {
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.editor-header h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apt-editor {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  background: #1e1e1e !important;
  color: #d4d4d4 !important;
  border: 1px solid #3e3e3e !important;
  border-radius: 8px;
  line-height: 1.6;
}

.editor-actions {
  margin-top: 16px;
}

.editor-actions button {
  height: 50px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
}

.progress-card {
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.result-card {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.result-card ::ng-deep .ant-tabs-nav {
  margin-bottom: 24px;
}

.result-toolbar {
  margin-bottom: 16px;
}

.gcode-output {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  max-height: 600px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.stats-grid {
  padding: 24px 0;
}

.stats-grid ::ng-deep .ant-statistic {
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.stats-grid ::ng-deep .ant-statistic:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.stats-grid ::ng-deep .ant-statistic-title {
  font-size: 14px;
  color: #8c8c8c;
  margin-bottom: 8px;
}

.stats-grid ::ng-deep .ant-statistic-content {
  font-size: 32px;
  font-weight: 600;
}

.feature-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  transition: all 0.3s;
}

.feature-item:hover {
  background: #f0f0f0;
}

.feature-item strong {
  display: block;
  margin-bottom: 4px;
  color: #262626;
}

.feature-item p {
  margin: 0;
  font-size: 12px;
  color: #8c8c8c;
}

.plugin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 8px;
}

.plugin-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

::ng-deep .ant-modal-header {
  border-radius: 8px 8px 0 0;
}

::ng-deep .ant-table-thead > tr > th {
  background: #fafafa;
  font-weight: 600;
}
