.profile-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #05be83;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #ffffff;
  text-transform: uppercase;
}

.img-container {
  position: relative;
  padding-bottom: 80%;
}

.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 767px) {
  .image-thumbnail {
    width: 150px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .image-thumbnail {
    width: 250px;
  }
}

@media (min-width: 992px) {
  .image-thumbnail {
    width: 300px;
  }
}

.reliability {
  width: 8%;
  height: 0;
  padding-bottom: 8%;
  margin-right: 0.2rem;
  background-size: cover;
}

.reliability-1 {
  background-color: rgb(0, 50, 255);
}

.reliability-2 {
  background-color: rgb(28, 70, 255);
}

.reliability-3 {
  background-color: rgb(56, 90, 255);
}

.reliability-4 {
  background-color: rgb(84, 110, 255);
}

.reliability-5 {
  background-color: rgb(112, 130, 255);
}

.reliability-6 {
  background-color: rgb(140, 140, 225);
}

.reliability-7 {
  background-color: rgb(170, 170, 170);
}

.reliability-8 {
  background-color: rgb(200, 200, 200);
}

.reliability-9 {
  background-color: rgb(220, 220, 220);
}

.reliability-10 {
  background-color: rgb(255, 255, 255);
}

@media screen and (max-width: 767px) {
  .reliability {
    width: 5%;
    padding-bottom: 5%;
  }
}

.page-loading-spinner {
  display: none;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-flex;
}

.query-generator-loading {
  align-items: center;
  min-height: 38px;
  white-space: nowrap;
}

.query-generator-loading .spinner-border,
.query-generator-loading-panel .spinner-border {
  width: 1rem;
  height: 1rem;
}

.query-generator-loading-panel.htmx-indicator {
  display: none;
}

.htmx-request .query-generator-loading-panel.htmx-indicator,
.htmx-request.query-generator-loading-panel.htmx-indicator {
  display: flex;
  align-items: center;
}

.dummy-text {
  font-size: 0.65rem;
}

.button-related {
  font-size: 0.75rem;
  width: 100%;
  padding: 0.375rem 0.6rem;
  padding-top: 0;
  padding-bottom: 0;
}

.row-data-none {
  height: 70px;
}

.spinner-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.36);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.theme-kamelio .list-group-item {
  background-color: transparent;
}

.bg-svg {
  background-image: url("../img/illustrations/shiroyagi-logo.svg");
  background-size: cover;
  background-position: center center;
  opacity: 0.4;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.modal-body li {
  font-size: 0.88rem;
}

.preformatted-text {
  white-space: pre-wrap;
  font-family: monospace;
  color: #111827;
}

.smaller-text,
.smaller-text * {
  font-size: 95%;
}

.wordcloud-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sourcegroup-table tr:nth-child(odd),
.sourcegroup-table tr:nth-child(odd) th,
.sourcegroup-table tr:nth-child(odd) td {
  border-top: 0;
  border-color: #ffffff;
}

.list-remarks {
  line-height: 1.1em;
  font-size: 0.9rem;
  list-style: square;
}

.inquiry-page .form-label,
.thanks-page .form-label {
  letter-spacing: 0.6em;
}

.svg-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/illustrations/shiroyagi-logo.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.1;
  filter: grayscale(10%);
  pointer-events: none;
  z-index: auto;
}

.inline-svg-container {
  display: inline-block;
  vertical-align: top;
  height: 0.7em;
}

.inline-svg-image {
  height: 80%;
  width: auto;
}

.expiration-date-card {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.topic-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.08);
  transition: background-color 0.2s ease;
  height: 80px;
  display: flex;
  flex-direction: column;
}

.topic-card:hover {
  background-color: #f3f6ff;
}

.topic-card .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 15px;
}

.topic-card .topic-title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  max-height: calc(1.4em * 2);
  word-wrap: break-word;
  text-align: center;
}

.search-history-item {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-history-item:hover {
  background-color: #f3f6ff;
}

.search-formula {
  font-weight: 500;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.search-date {
  font-size: 0.75rem;
  color: #6c757d;
  text-align: right;
  margin-top: 2px;
}

.search-box-container {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
  padding: 20px;
  margin: 20px 0;
}

.empty-state-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px dashed rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 22px;
}

:root {
  --st-bg: #f7f8fb;
  --st-bg-accent: #eef2ff;
  --st-surface: #ffffff;
  --st-surface-2: #f3f6ff;
  --st-text: #1e2432;
  --st-text-muted: #6b7280;
  --st-primary: #3b82f6;
  --st-primary-600: #2563eb;
  --st-accent: #7c3aed;
  --st-border: #e5e7eb;
  --st-shadow-1: 0 8px 24px rgba(31, 41, 55, 0.08);
  --st-shadow-2: 0 16px 40px rgba(31, 41, 55, 0.1);
  --st-radius-lg: 16px;
  --st-radius-xl: 20px;
}

.theme-kamelio {
  background: linear-gradient(180deg, #f7f8fb 0%, #eef2ff 100%);
  color: var(--st-text);
  font-family: "Noto Sans JP", "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-kamelio::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 280px at 10% 10%, rgba(124, 58, 237, 0.08), transparent 60%),
    radial-gradient(520px 240px at 90% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(560px 260px at 80% 90%, rgba(16, 185, 129, 0.05), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.theme-kamelio-no-glow::before {
  display: none;
}

.theme-kamelio h1,
.theme-kamelio h2,
.theme-kamelio h3,
.theme-kamelio h4,
.theme-kamelio h5,
.theme-kamelio h6,
.theme-kamelio .h1,
.theme-kamelio .h2,
.theme-kamelio .h3,
.theme-kamelio .h4,
.theme-kamelio .h5,
.theme-kamelio .h6 {
  font-family: "Sora", "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.2px;
}

.theme-kamelio .card {
  background-color: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-lg);
  box-shadow: var(--st-shadow-1);
}

.theme-kamelio .card-header {
  background: linear-gradient(180deg, var(--st-surface-2) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--st-border);
  border-top-left-radius: var(--st-radius-lg);
  border-top-right-radius: var(--st-radius-lg);
}

.theme-kamelio .btn {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.theme-kamelio .btn-primary {
  background: linear-gradient(180deg, var(--st-primary) 0%, var(--st-primary-600) 100%);
  border: none;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.22);
}

.theme-kamelio .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.3);
}

.theme-kamelio .btn-outline-primary {
  border-color: var(--st-primary);
  color: var(--st-primary);
}

.theme-kamelio .btn-outline-primary:hover {
  background: rgba(59, 130, 246, 0.1);
}

.theme-kamelio .form-control,
.theme-kamelio .form-select,
.theme-kamelio .input-group-text {
  border-radius: 12px;
  border: 1px solid var(--st-border);
  background-color: #fff;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.theme-kamelio .form-control:focus,
.theme-kamelio .form-select:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.theme-kamelio .table {
  border-color: var(--st-border);
}

.theme-kamelio .table thead th {
  background-color: var(--st-surface-2);
  border-bottom: 1px solid var(--st-border);
  color: var(--st-text);
}

.theme-kamelio .badge {
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.theme-kamelio .alert {
  border-radius: var(--st-radius-lg);
}

.theme-kamelio .sidebar {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-kamelio .sidebar .nav-link {
  color: rgba(255, 255, 255, 0.72);
}

.theme-kamelio .sidebar .nav-link.active,
.theme-kamelio .sidebar .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.theme-kamelio .navbar,
.theme-kamelio .topbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--st-border);
}

.theme-kamelio .list-group-item {
  border-color: var(--st-border);
}

.theme-kamelio .shadow-soft,
.theme-kamelio .shadow {
  box-shadow: var(--st-shadow-1);
}
