:root {
  --bg-color-light: #ffffff;
  --text-color-light: #0f172a;
  --bg-color-dark: #090d16;
  --text-color-dark: #f8fafc;
  --accent-color: #0f172a;
  --accent-hover: #1e293b;
  --nav-highlight-color: #3498db;

  /* shadcn UI Button Color System */
  --btn-bg: #0f172a;
  --btn-text: #ffffff;
  --btn-hover: #1e293b;
  --btn-border: #0f172a;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  color: var(--text-color-light);
  background-color: var(--bg-color-light);
  transition: color 0.3s, background-color 0.3s;
}

/* Centered Main Content Wrapper */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px 16px 0 16px;
  box-sizing: border-box;
}

p {
  margin: 4px 0;
}

.dark-mode {
  background-color: var(--bg-color-dark);
  color: var(--text-color-dark);
  --accent-color: #f8fafc;
  --accent-hover: #e2e8f0;

  /* shadcn UI Button Colors (Dark Mode Swap) */
  --btn-bg: #f8fafc;
  --btn-text: #0f172a;
  --btn-hover: #e2e8f0;
  --btn-border: #f8fafc;
}
.header {
  text-align: center;
  padding: 10px 0;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 30px;
}
h1 {
  color: var(--accent-color);
  margin-bottom: 10px;
  margin-top: 5px;
}
.authors {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.6;
}
.authors a {
  color: #1a73e8;
  text-decoration: none;
}

.authors sup {
  font-size: 18px;
  vertical-align: super;
}

.authors em {
  font-size: 14px;
}
.abstract {
  scroll-margin-top: 50px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}
h2 {
  color: var(--accent-color);
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-top: 10px;
  padding-left: 10px;
}
.content-section {
  margin-top: 10px;
  scroll-margin-top: 50px;
  margin-bottom: 40px;
}

.subsection {
  margin-top: 25px;
  margin-bottom: 25px;
  padding-left: 10px;
}

.subsection h3 {
  color: var(--accent-color);
  font-size: 1.25em;
  margin-top: 15px;
  margin-bottom: 8px;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 5px;
}

/* Full Width Footer */
.footer {
  text-align: center;
  margin-top: 50px;
  padding: 30px 20px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
  width: 100%;
  box-sizing: border-box;
}

/* Sticky Header Navbar (Full Width) */
.nav {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  background: var(--bg-color-light);
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

.nav-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-sizing: border-box;
}
.nav.dark-mode {
  background: var(--bg-color-dark);
}
.nav a {
  margin: 0 10px;
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out, border-bottom 0.2s ease-in-out;
}
.nav a:hover,
.nav a.active {
  color: var(--nav-highlight-color, #3498db);
  font-weight: 600;
  border-bottom: 2px solid var(--nav-highlight-color, #3498db);
  padding-bottom: 2px;
}
.toggle-btn {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: absolute;
  top: 10px;
  right: 10px;
}

.toggle-btn:hover {
  background-color: var(--btn-hover);
}
.buttons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  margin: 4px 8px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.buttons a:hover {
  background-color: var(--btn-hover);
}

.video-section {
  margin-top: 40px;
}

.video-section h2 {
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.bibtex-section {
  position: relative;
  margin-top: 40px;
}

.bibtex-section pre {
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow-x: auto;
}

.bibtex-copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.bibtex-copy-button:hover {
  background-color: var(--btn-hover);
}
.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 calc(33.333% - 20px);
  margin: 0 10px;
  height: 300px;
}

.carousel-slide img,
.carousel-slide iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: none;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 1);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
}

.indicator.active {
  background: #3b82f6;
}
.scrollUpBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  border-radius: 50%;
  padding: 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width: 46px;
  height: 46px;
  transition: all 0.2s ease-in-out;
}

.scrollUpBtn:hover {
  background-color: var(--btn-hover);
}

.dark-mode .header,
.dark-mode .abstract,
.dark-mode .footer,
.dark-mode h1,
.dark-mode h2,
.dark-mode .bibtex-section pre {
  background-color: #1e293b;
  border-color: #334155;
  color: var(--text-color-dark);
}
.dark-mode .nav a {
  color: var(--text-color-dark);
}
.dark-mode .nav a:hover {
  color: #3498db;
}

/* Skeleton Loading Animations */
.skeleton {
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
  border-radius: 4px;
  display: inline-block;
}

.dark-mode .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-title {
  width: 60%;
  height: 36px;
  margin: 15px auto;
}

.skeleton-text {
  width: 90%;
  height: 16px;
  margin: 8px auto;
}

.skeleton-text-short {
  width: 40%;
  height: 16px;
  margin: 8px auto;
}

.skeleton-btn {
  width: 90px;
  height: 38px;
  margin: 5px 10px;
  border-radius: 5px;
}

.skeleton-box {
  width: 100%;
  height: 250px;
  margin: 20px 0;
  border-radius: 8px;
}

