/*
 * Blog Monitor Application Styles
 */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 14px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 7px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Toast animations */
#toast-container>div {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Chart container */
.apexcharts-canvas {
  margin: 0 auto;
}

/* Table styles */
.table-fixed-header thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Loading spinner */
.spinner,
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Truncate text */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prose styles for reports */
.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.25rem;
}

/* Inline action defaults (button_to generates form.button_to) */
form.button_to {
  display: inline-block;
  margin: 0;
}

form.button_to + form.button_to,
form.button_to + a,
a + form.button_to {
  margin-left: 0.75rem;
}

/* Compact select width for rank/stat settings */
.rank-select-compact {
  width: 2cm;
}

/* 블로그아이디 그룹 폼 제출 버튼 (배경/글자 확실히 표시) */
input.btn-blog-id-group-submit,
button.btn-blog-id-group-submit {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
input.btn-blog-id-group-submit:hover,
button.btn-blog-id-group-submit:hover {
  background-color: #4338ca !important;
  color: #ffffff !important;
}
