
    :root {
  --main-bg: #f5f7fa;
  --dark-bg: #121212;
  --primary: #0066ff;
  --primary-dark: #004cc9;
  --light: #ffffff;
  --dark: #1f1f1f;
  --accent: #00c6ff;
  --border: #e0e0e0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: var(--main-bg);
  color: var(--dark);
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--light);
}

.container {
  max-width: 960px;
  margin: 60px auto;
  padding: 2.5rem;
  background: var(--light);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: background 0.4s;
}

body.dark-mode .container {
  background: #1e1e1e;
}

.page-title {
  text-align: center;
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.page-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2.5rem;
}

.upload-area {
  text-align: center;
  padding: 2.5rem;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background-color: #fdfdfd;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area.dragover {
  background-color: #e0f4ff;
  border-color: var(--primary);
}

.upload-area.dark-mode {
  background-color: #2a2a2a;
  border-color: #444;
}

.upload-button {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-button:hover {
  background-color: var(--primary-dark);
}

#pdfs {
  display: none;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.file-list li {
  background: #eaf1f8;
  margin: 0.5rem 0;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.btn-merge {
  display: none;
  margin: auto;
  margin-top: 2rem;
  padding: 12px 26px;
  background-color: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-merge:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 16px rgba(0, 102, 255, 0.4);
}

.dark-mode-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
}

.instructions {
  margin-top: 40px;
  background: #eef2f7;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

.instructions h3 {
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}
.dark-mode .instructions {
  background: linear-gradient(135deg, #2b2b2b, #1f1f1f);
  color: #e0e0e0;
  border-left-color: var(--primary);
}


.footer-note {
  margin-top: 50px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

body.dark-mode .footer-note {
  color: #aaa;
}

/* Thumbnails */

#thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
}

.thumbnail-item {
  width: 110px;
  text-align: center;
  position: relative;
}

.thumbnail-item canvas {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.thumbnail-filename {
  margin-top: 6px;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: crimson;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
}

/* Info Section */

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 4rem auto;
  padding: 0 1rem;
  animation: fadeIn 1s ease-in-out;
}

.info-item {
  background: #ffffff;
  color: #333;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--primary);
}

.info-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(0, 123, 255, 0.2);
}

.info-item h2 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.info-item p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.info-item ul {
  list-style: none;
  padding-left: 1rem;
}

.info-item ul li {
  margin-bottom: 0.7rem;
  position: relative;
  padding-left: 1.5rem;
}

.info-item ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

body.dark-mode .info-item {
  background: #1c1c1c;
  color: #ccc;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

body.dark-mode .info-item h2 {
  color: var(--primary);
}

body.dark-mode .info-item ul li::before {
  color: var(--accent);
}

/* Animations */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .info-section {
    grid-template-columns: 1fr;
  }

  .info-item h2 {
    font-size: 1.5rem;
  }

  .info-item p,
  .info-item ul li {
    font-size: 0.95rem;
  }
}

/* Header */
header.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #e03e2f;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 1px;
}

/* Navigation Links */
nav.nav-links a {
  margin: 0 1rem;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

nav.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #5c4dff;
  transition: width 0.3s ease;
  border-radius: 1px;
}

nav.nav-links a:hover {
  color: #5c4dff;
}

nav.nav-links a:hover::after {
  width: 100%;
}

/* Actions (Login / Sign Up buttons) */
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions #loginBtn {
  text-decoration: none;
  color: #0077cc;
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid #0077cc;
  border-radius: 6px;
}

.actions .lang-btn {
  background: #0077cc;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.actions .lang-btn:hover {
  background: #005bb5;
}

/* User Menu */
#userMenu {
  position: relative;
  display: flex;
  align-items: center;
}

#userAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

#dropdown {
  display: none;
  position: absolute;
  top: 50px;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
}

#userMenu:hover #dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#dropdown a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  margin-bottom: 4px;
  background: #f5f5f5;
  transition: background 0.2s;
}

#dropdown a:hover {
  background: #e0f0ff;
}

#dropdown svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  fill: #0077cc;
}

/* Responsive: hide nav on small screens */
@media (max-width: 768px) {
  nav.nav-links {
    display: none;
  }
  header.site-header {
    padding: 1rem;
  }
}
/* Footer */
footer.site-footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-about,
.footer-links,
.footer-social {
  flex: 1 1 250px;
}

/* Section Titles */
.footer-about h3,
.footer-links h3,
.footer-social h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #a5b4fc;
}

.footer-about p {
  line-height: 1.5;
  color: #9ca3af;
}

/* Links */
.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.6rem;
}

.footer-links ul li a {
  color: #9ca3af;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #a5b4fc;
}

/* Social Icons */
.footer-social .social-icons a {
  display: inline-block;
  margin-right: 0.75rem;
  color: #d1d5db;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #a5b4fc;
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-social .social-icons a {
    margin-right: 0.5rem;
  }
}

