/* ================================================
   🌗 THEME VARIABLES (Dark & Light Mode)
   ================================================ */
:root {
  --ng-bg: #0f0f10;
  --ng-card: rgba(255,255,255,0.04);
  --ng-accent: #00b7ff;
  --ng-text: #e6eef8;
  --ng-muted: rgba(230,238,248,0.6);
}

body.light-mode {
  --ng-bg: #ffffff;
  --ng-card: rgba(0,0,0,0.05);
  --ng-accent: #007bff;
  --ng-text: #000000;
  --ng-muted: rgba(0,0,0,0.6);
}

/* ================================================
   📚 Neoglass Reading History Page
   ================================================ */
.ng-history {
  padding: 16px;
}

/* --- Header --- */
.ng-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  position: sticky;
  top: 60px;
  background: var(--ng-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  padding: 8px 10px;
  border-radius: 10px;
}

.ng-header-row h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ng-text);
}

/* --- List --- */
.ng-history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Item --- */
.ng-history-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ng-card);
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.4s ease;
}

.ng-history-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* --- Thumbnail --- */
.ng-history-thumb img {
  width: 85px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- Info --- */
.ng-history-info {
  flex: 1;
}

.ng-history-info h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  color: var(--ng-text);
  transition: color 0.2s;
}

.ng-history-info h3:hover {
  color: var(--ng-accent);
}

.ng-last-read {
  font-size: 0.9rem;
  color: var(--ng-muted);
  margin-bottom: 8px;
}

.ng-last-read a {
  color: var(--ng-accent);
  text-decoration: none;
}

.ng-last-read a:hover {
  text-decoration: underline;
}

/* --- Buttons --- */
.ng-continue-btn {
  background: var(--ng-accent);
  color: #000;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.2s;
}

.ng-continue-btn:hover {
  background: #0096da;
}

.ng-remove-history {
  background: var(--ng-accent);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #000;
  transition: all 0.2s ease;
}

.ng-remove-history:hover {
  background: #00a0e0;
  transform: translateY(-1px);
}

/* ================================================
   ✨ Empty State & Login Prompt (rapih versi card)
   ================================================ */
.ng-empty-bookmark,
.ng-login-prompt {
  text-align: center;
  padding: 50px 20px;
  background: var(--ng-card);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-width: 600px;
  margin: 40px auto;
}

.ng-login-prompt h2 {
  font-size: 1.4rem;
  color: var(--ng-text);
  margin-bottom: 10px;
}

.ng-login-desc {
  color: var(--ng-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* --- Tombol Login & Register --- */
.ng-login-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Tombol utama (Masuk Sekarang) */
.ng-btn-primary {
  background: var(--ng-accent);
  color: #000;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ng-btn-primary:hover {
  background: #00a0e0;
  transform: translateY(-1px);
}

/* Tombol outline (Daftar Akun Baru) */
.ng-btn-outline {
  background: transparent;
  border: 1.5px solid var(--ng-accent);
  color: var(--ng-accent);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ng-btn-outline:hover {
  background: var(--ng-accent);
  color: #000;
  transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .ng-history-thumb img {
    width: 70px;
    height: 100px;
  }

  .ng-history-info h3 {
    font-size: 1rem;
  }

  .ng-continue-btn,
  .ng-remove-history {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .ng-login-actions {
    flex-direction: column;
  }

  .ng-btn-primary,
  .ng-btn-outline {
    width: 100%;
    justify-content: center;
  }
}
