/* ====== GLOBAL ====== */
body {
  background: radial-gradient(circle at top left, #1a1a1a 0%, #000000 100%);
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  margin: 0;
  min-height: 100vh;
}

.btn {
  margin-right: 15px;
}

.text-muted {
  color: dimgrey !important;
}

/* ====== LOGIN PAGE ====== */
.login-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

/* ====== DASHBOARD ====== */
.sidebar {
  background-color: #1b1b1b;
  min-height: 100vh;
  padding: 2rem;
}

.sidebar a {
  display: block;
  color: #ccc;
  margin: 0.5rem 0;
  text-decoration: none;
}

.row>* {
  margin-top: 3px !important;
  margin-bottom: 10px;
}

.sidebar a:hover {
  color: #fff;
}

.header {
  background: #222;
  padding: 1rem;
  text-align: center;
  color: #fff;
  border-bottom: 1px solid #333;
}

.content {
  padding: 2rem;
}

.card {
  background-color: #292929;
  border: none;
  color: #fff;
}

.title-block {
  min-height: 70px;
}

/* ====== CATEGORY SLIDER ====== */
.category-slider {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.category-slider::-webkit-scrollbar {
  display: none;
}

.category-slider button {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 10px 18px;
  background: #2c2c40;
  color: #fff;
  border: 2px solid #444;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.category-slider button:hover,
.category-slider button.active {
  background: #4e4e80;
  border-color: #5a5aff;
  color: #fff;
}

/* Optional: hide text selection during drag */
.category-slider.dragging {
  user-select: none;
}

.category-slider {
  scroll-behavior: smooth;
  cursor: grab;
}

.category-slider:active {
  cursor: grabbing;
}

/* Read Page */

.bg-success {
  line-height: 22px;
}

.read-page {
  padding-bottom: 0px;
}

.read-page {
  color: #e0e0e0;
  font-family: 'Segoe UI', sans-serif;
  margin-left: 20px;
}

.read-page .fancy-text {
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.read-page .text-pink {
  color: #ff9ce6;
  font-size: 22px !important;
}

.read-page .story-text {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
