/* BOM Management Page Styles */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bom-management-page {
  padding: 40px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.bom-header-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 40px;
}

.bom-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.bom-stat-card {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

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

.bom-stat-number {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bom-stat-label {
  font-size: 14px;
  font-weight: 500;
}

.bom-category-tabs {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 40px;
}

.bom-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.bom-category-button {
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
  border: none;
  outline: none;
}

.bom-category-button:hover {
  transform: translateY(-1px);
}

.bom-category-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.bom-category-count {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 500;
}

.bom-content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.bom-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.bom-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.bom-loading-text {
  font-size: 18px;
  color: #64748b;
  font-weight: 600;
}

.bom-error {
  padding: 60px;
  text-align: center;
  color: #dc2626;
}

.bom-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.bom-error-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bom-error-message {
  font-size: 14px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .bom-management-page {
    padding: 20px;
  }
  
  .bom-header-card {
    padding: 24px;
  }
  
  .bom-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .bom-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .bom-category-button {
    padding: 12px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .bom-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .bom-category-grid {
    grid-template-columns: 1fr;
  }
}
