/* 컴포넌트 스타일 */

/* Alert 컴포넌트 */
.alert {
  border-left: 4px solid;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  display: flex;
  align-items: flex-start;
}

.alert-info {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
}

.alert-warning {
  background-color: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.alert-error {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.alert-success {
  background-color: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

.alert-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  margin-top: 0.125rem;
}

.alert-content {
  flex: 1;
}

/* Card 컴포넌트 */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.card-content {
  color: #4b5563;
}

/* Button 컴포넌트 */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-success {
  background-color: #059669;
  color: white;
}

.btn-success:hover {
  background-color: #047857;
}

.btn-warning {
  background-color: #d97706;
  color: white;
}

.btn-warning:hover {
  background-color: #b45309;
}

.btn-danger {
  background-color: #dc2626;
  color: white;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

/* Badge 컴포넌트 */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
}

.badge-primary {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-sm {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

.badge-lg {
  padding: 0.5rem 1rem;
  font-size: 1rem;
}

/* Divider 컴포넌트 */
.divider {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #d1d5db;
}

.divider-dotted {
  border-top-style: dotted;
}

.divider-dashed {
  border-top-style: dashed;
}

.divider-with-text {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.divider-with-text::before,
.divider-with-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #d1d5db;
}

.divider-text {
  padding: 0 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

/* TOC 컴포넌트 */
.toc-container {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.toc-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.toc-title::before {
  content: "📋";
  margin-right: 0.5rem;
}

.toc-list {
  font-size: 0.875rem;
}

.toc-list ul {
  list-style: none;
  padding-left: 0;
}

.toc-list li {
  margin-bottom: 0.25rem;
}

.toc-list a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-list a:hover {
  color: #2563eb;
}

.toc-list ul ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .alert {
    padding: 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .badge {
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
  }

  .toc-container {
    padding: 1rem;
  }
}
