/* Global variables and colors */
@font-face {
    font-family: 'Lato';
    src: url('../fonts/lato/Lato-Regular.ttf?c6fe79dcef1ba0b89a6304b393277538') format('truetype'),
    url('../fonts/lato/Lato-Regular.ttf?c6fe79dcef1ba0b89a6304b393277538') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
  --font-sans: 'Lato', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --bg-body-light: #fafafa;
  --bg-body-dark: #09090b;
  --bg-card-light: #ffffff;
    /*--bg-card-dark: #121214;*/
    --bg-card-dark: #fafafa;
  --border-color-light: #eaeaea;
  --border-color-dark: #27272a;
}

/* Base Body settings & Theme transition */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-body-light);
  color: #18181b;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark-theme,
html.dark-theme body,
[data-bs-theme="dark"] body {
  background-color: var(--bg-body-dark);
  color: #f4f4f5;
}

/* Premium Card & Element backgrounds */
.bg-custom-card {
  background-color: var(--bg-card-light);
  border: 1px solid var(--border-color-light);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme .bg-custom-card {
  background-color: var(--bg-card-dark);
  border-color: var(--border-color-dark) !important;
}

/* Transitions for Navbar & Footer */
.nav-transition {
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer-transition {
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Tactile Hover Effects */
.hover-translate {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hover-translate:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.12) !important;
}

.dark-theme .hover-translate:hover {
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5) !important;
}

.hover-underline:hover {
  text-decoration: underline !important;
}

.hover-opacity:hover {
  opacity: 0.82;
  cursor: pointer;
}

/* Typography styles */
p, .lead, p.lead {
  font-size: 15px !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
h1.display-1, h1.display-2, h1.display-3, h1.display-4, h1.display-5, h1.display-6,
h2.display-2, h2.display-3, h2.display-4, h2.display-5, h2.display-6,
h3.display-3, h3.display-4, h3.display-5, h3.display-6,
h4.display-4, h4.display-5, h4.display-6,
h5.display-5, h5.display-6,
h6.display-6 {
  font-size: 20px !important;
}

.font-serif {
  font-family: var(--font-serif) !important;
}

.font-mono {
  font-family: var(--font-mono) !important;
  font-size: 0.85em;
}

.italic {
  font-style: italic;
}

.text-left {
  text-align: left !important;
}

/* Global Form Elements Border & Focus Shadow Off */
input, textarea, select, .form-control, .form-select {
  border-width: 1px !important;
  border-style: solid !important;
}

input:focus, textarea:focus, select:focus, .form-control:focus, .form-select:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Custom form-check & compliance checkboxes styling */
.form-check-input {
  border-color: #d1d5db !important;
  background-color: #ffffff !important;
  border-width: 1.5px !important;
  width: 1.1em !important;
  height: 1.1em !important;
}

.dark-theme .form-check-input {
  border-color: #4b5563 !important;
  background-color: #121214 !important;
}

.form-check-input:checked {
  background-color: #000000 !important;
  border-color: #000000 !important;
}

.dark-theme .form-check-input:checked {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

.form-check-input:focus {
  box-shadow: none !important;
  border-color: #4b5563 !important;
}

.dark-theme .form-check-input:focus {
  border-color: #9ca3af !important;
}

/* Logo specific styles */
.logo-circle {
  width: 32px;
  height: 32px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 19px;
}

/* Fancy Accent Rails */
.fancy-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: #a1a1aa;
  vertical-align: middle;
}

.dark-theme .fancy-line {
  background-color: #52525b;
}

.text-gradient {
  background: linear-gradient(135deg, #18181b, #71717a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-theme .text-gradient {
  background: linear-gradient(135deg, #f4f4f5, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Page Transitions */
.animate-fadeIn {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Text Clamps */
.text-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Active navigation items */
.nav-link-custom {
  border: 0;
  background: transparent;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.nav-link-custom.active-nav {
  font-weight: 700;
  border-bottom: 2px solid currentColor;
}

  /* Theme toggle button styling */
.theme-btn {
  width: 40px !important;
  height: 40px !important;
  flex-shrink: 0 !important;
}

#auth-header-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  border: none !important;
  border-width: 0px !important;
  box-shadow: none !important;
  outline: none !important;
}

#auth-header-btn:focus,
#auth-header-btn:active,
#auth-header-btn:hover {
  border: none !important;
  border-width: 0px !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Header & Slogans */
.hero-sysname {
  letter-spacing: 0.15em;
  font-size: 11px;
}

.hero-title {
  max-width: 800px;
  margin: 0 auto;
}

.hero-slogan {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* Grid & Cover sizes */
.article-cover-detail {
/* height: 380px;*/
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.cover-sm {
  height: 70px;
}

.cover-md {
  height: 190.5px;
}

.avatar-xs {
  width: 50px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.avatar-sm {
  width: 80px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.avatar-md {
  width: 120px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.avatar-lg {
  width: 140px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.avatar-xl {
  width: 100%;
  max-width: 160px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Page Bounds */
.max-width-800 {
  max-width: 888px;
  margin: 0 auto;
}

.max-width-500 {
  max-width: 460px;
  margin: 0 auto;
}

/* Comments details */
.comment-author-txt {
  font-size: 13.5px;
}

.comment-date-txt {
  font-size: 10.5px;
}

/* Dashboard adjustments */
.dash-tab-btn-txt {
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.table-header-txt {
  font-size: 11px;
}

.dash-add-cat-label {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.dash-form-input {
  font-size: 13.5px;
}

.log-container {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.settings-alert-txt {
  font-size: 13.5px;
}

.settings-switch {
  width: 42px;
  height: 22px;
  cursor: pointer;
}

.badge-xs {
  font-size: 9.5px;
}

.badge-pub-txt {
  font-size: 8.5px;
}

.social-btn-txt {
  font-size: 11px;
}

/* Custom scrollbar to match sleek theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dark-theme ::-webkit-scrollbar-thumb {
  background: #3f3f46;
}

/* Sticky layout structure */
main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

.footer-links {
  font-size: 12px;
}

/* ==========================================================================
   ADMIN PORTAL LAYOUT STYLES (admin_dashboard.html)
   ========================================================================== */
.admin-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--bg-card-light);
  border-right: 1px solid var(--border-color-light);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1020;
  flex-shrink: 0;
}

.dark-theme .admin-sidebar {
  background-color: var(--bg-card-dark);
  border-right-color: var(--border-color-dark);
}

.admin-sidebar-header {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-color-light);
}

.dark-theme .admin-sidebar-header {
  border-bottom-color: var(--border-color-dark);
}

.admin-sidebar .nav-link {
  color: #52525b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.25rem 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme .admin-sidebar .nav-link {
  color: #a1a1aa;
}

.admin-sidebar .nav-link:hover {
  background-color: #ededf0;
  color: #09090b;
}

.dark-theme .admin-sidebar .nav-link:hover {
  background-color: #1a1a1e;
  color: #fafafa;
}

.admin-sidebar .nav-link.active {
  background-color: #09090b;
  color: #ffffff !important;
  font-weight: 600;
}

.dark-theme .admin-sidebar .nav-link.active {
  background-color: #f4f4f5;
  color: #09090b !important;
  font-weight: 600;
}

.admin-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-body-light);
  transition: background-color 0.4s ease;
}

.dark-theme .admin-content-wrapper {
  background-color: var(--bg-body-dark);
}

.admin-header {
  height: 70px;
  background-color: var(--bg-card-light);
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1010;
  transition: all 0.4s ease;
}

.dark-theme .admin-header {
  background-color: var(--bg-card-dark);
  border-bottom-color: var(--border-color-dark);
}

/* User Profile & Dropdown menu customization */
.user-profile-container {
  position: relative;
}

.user-profile-btn {
  background: transparent;
  border: 0;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
  transition: background-color 0.2s;
}

.user-profile-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dark-theme .user-profile-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.admin-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-card-light);
  border: 1px solid var(--border-color-light);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 1030;
  animation: dropdownAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownAnim {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dark-theme .admin-dropdown-menu {
  background-color: var(--bg-card-dark);
  border-color: var(--border-color-dark);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

.admin-dropdown-menu.show {
  display: block;
}

.admin-dropdown-divider {
  height: 1px;
  background-color: var(--border-color-light);
  margin: 0.5rem 0;
}

.dark-theme .admin-dropdown-divider {
  background-color: var(--border-color-dark);
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.admin-dropdown-item:hover {
  background-color: #ededf0;
  color: #09090b;
}

.dark-theme .admin-dropdown-item:hover {
  background-color: #1a1a1e;
  color: #fafafa;
}

.admin-dropdown-item.danger-item:hover {
  background-color: #fee2e2;
  color: #b91c1c;
}

.dark-theme .admin-dropdown-item.danger-item:hover {
  background-color: #450a0a;
  color: #fca5a5;
}

/* Sidebar toggle on mobile */
@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    top: 70px;
    bottom: 0;
    left: -260px;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .admin-sidebar.show {
    left: 0;
    box-shadow: 15px 0 30px -10px rgba(0,0,0,0.15);
  }
  .dark-theme .admin-sidebar.show {
    box-shadow: 15px 0 30px -10px rgba(0,0,0,0.6);
  }
}

/* ==========================================================================
   UNIVERSAL DARK SCHEMA OVERRIDES (Fix for all pages including Dashboards)
   ========================================================================== */
.dark-theme {
  --bg-body-dark: #09090b;
  --bg-card-dark: #121214;
  --border-color-dark: #27272a;
}

/* 1. Global typography & element selectors */
.dark-theme .text-dark,
.dark-theme .text-dark-emphasis {
  color: #f4f4f5 !important;
}

.dark-theme .text-muted {
  color: #a1a1aa !important;
}

.dark-theme .border-light,
.dark-theme .border-light-subtle,
.dark-theme .border-bottom,
.dark-theme .border-top {
  border-color: var(--border-color-dark) !important;
}

/* 2. Navigation Bar & Header Overrides */
.dark-theme #main-nav,
.dark-theme .navbar {
  background-color: var(--bg-card-dark) !important;
  border-bottom-color: var(--border-color-dark) !important;
}

.dark-theme .navbar-toggler {
  border-color: var(--border-color-dark) !important;
}

.dark-theme .navbar-toggler-icon {
  filter: invert(1);
}

.dark-theme .nav-link-custom {
  color: #a1a1aa !important;
}

.dark-theme .nav-link-custom:hover {
  color: #ffffff !important;
}

.dark-theme .nav-link-custom.active-nav {
  color: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

/* 3. Footer Overrides */
.dark-theme #main-footer,
.dark-theme footer {
  background-color: #0c0c0e !important;
  border-top-color: var(--border-color-dark) !important;
}

.dark-theme footer .text-muted,
.dark-theme footer a {
  color: #a1a1aa !important;
}

.dark-theme footer a:hover {
  color: #ffffff !important;
}

/* 4. Base BG Utilities Overrides */
.dark-theme .bg-white {
  background-color: var(--bg-card-dark) !important;
}

.dark-theme .bg-light {
  background-color: #161618 !important;
  color: #fafafa !important;
}

/* 5. Sleek Custom Cards under Dark scheme */
.dark-theme .card {
  background-color: var(--bg-card-dark) !important;
  border-color: var(--border-color-dark) !important;
  color: #f4f4f5 !important;
}

/* 6. Form elements and Input fields */
.dark-theme .form-control,
.dark-theme .form-select {
  background-color: #121214 !important;
  border-color: #474749 !important;
  color: #fafafa !important;
}

.dark-theme .form-control::placeholder {
  color: #71717a !important;
  opacity: 0.8;
}

.dark-theme .form-control:focus,
.dark-theme .form-select:focus {
  background-color: #161618 !important;
  border-color: #52525b !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* 7. Action Button Color Transitions */
.dark-theme .btn-dark {
  background-color: #121214 !important; /*#f4f4f5*/
  color: #f4f4f5 !important; /*09090b*/
  border-color: #2b2b2b !important;
}

.dark-theme .btn-dark:hover {
  background-color: #e4e4e7 !important;
  color: #09090b !important;
  border-color: #e4e4e7 !important;
}

.dark-theme .btn-outline-dark {
  color: #f4f4f5 !important;
  border-color: #52525b !important;
}

.dark-theme .btn-outline-dark:hover {
  background-color: #f4f4f5 !important;
  color: #09090b !important;
  border-color: #f4f4f5 !important;
}

.dark-theme .btn-light {
  background-color: #1c1c1f !important;
  color: #fafafa !important;
  border-color: var(--border-color-dark) !important;
}

.dark-theme .btn-light:hover {
  background-color: #27272a !important;
  color: #ffffff !important;
}

/* 8. Table Styling in Cabinets & Admin Boards */
.dark-theme .table {
  color: #f4f4f5 !important;
  background-color: transparent !important;
  border-color: var(--border-color-dark) !important;
}

.dark-theme .table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

.dark-theme .table td,
.dark-theme .table th {
  border-color: var(--border-color-dark) !important;
  background-color: transparent !important;
  color: inherit !important;
}

.dark-theme .table-light,
.dark-theme .table-light th,
.dark-theme .table-light td {
  background-color: #161618 !important;
  color: #fafafa !important;
  border-color: var(--border-color-dark) !important;
}

.dark-theme th.table-header-txt {
  color: #a1a1aa !important;
}

/* Logo inversion under dark theme */
.dark-theme #logo-circle,
.dark-theme .logo-circle {
  background-color: #fafafa !important;
  color: #09090b !important;
}

/* ==========================================================================
   MOBILE MENU / RESPONSIVE NAVIGATION IMPROVEMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Smooth expand transition & spacious padding */
  .navbar-collapse {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid var(--border-color-light) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Clean modern floating menu feel */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .dark-theme .navbar-collapse {
    background-color: rgba(18, 18, 20, 0.98) !important;
    border-color: var(--border-color-dark) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  /* List items layout & alignment */
  .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 0.5rem !important;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  /* Style mobile anchor links as sleek blocks */
  .nav-link-custom {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.8rem 1.2rem !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
    background: transparent !important;
    color: #4b5563 !important; /* Neutrals for modern look */
  }

  .dark-theme .nav-link-custom {
    color: #9ca3af !important;
  }

  /* Hover states as soft blocks */
  .nav-link-custom:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
    color: #111827 !important;
  }

  .dark-theme .nav-link-custom:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #f9fafb !important;
  }

  /* Pill-highlight active states on mobile (eliminates full screen horizontal line stretched across) */
  .nav-link-custom.active-nav {
    font-weight: 600 !important;
    background-color: #000000 !important; /* Striking minimalist black callout */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .dark-theme .nav-link-custom.active-nav {
    background-color: #ffffff !important; /* Striking minimalist white callout */
    color: #000000 !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  }

  /* Quick align adjustments for profile and dark themes triggers inside dropdown */
  .navbar-collapse > .d-flex {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color-light);
    justify-content: center !important;
    width: 100%;
  }

  .dark-theme .navbar-collapse > .d-flex {
    border-top-color: var(--border-color-dark);
  }
}

/* ==========================================================================
   SOCIAL SHARING BUTTONS CUSTOM STYLING
   ========================================================================== */
.share-social-btn {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #4b5563 !important;
  border-color: #e5e7eb !important;
  background-color: transparent !important;
  padding: 0.35rem 0.85rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.share-social-btn:hover {
  transform: translateY(-1.5px);
  color: #111827 !important;
  background-color: rgba(0, 0, 0, 0.03) !important;
  border-color: #9ca3af !important;
}

.share-social-btn i {
  font-size: 13px !important;
  transition: transform 0.2s ease;
}

.share-social-btn:hover i {
  transform: scale(1.1);
}

.dark-theme .share-social-btn {
  color: #9ca3af !important;
  border-color: #374151 !important;
}

.dark-theme .share-social-btn:hover {
  color: #f9fafb !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: #6b7280 !important;
}

/* ==========================================================================
   SCROLL READING PROGRESS BAR STYLING
   ========================================================================== */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  z-index: 2050; /* Above all sticky/fixed parts */
  pointer-events: none;
}

.reading-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #000000;
  transition: width 0.1s ease-out;
}

.dark-theme .reading-progress-bar {
  background-color: #ffffff;
}

.modal-header {
    border-bottom: none;
}
.modal-footer {
    border-top: none;
}

/* Drag and drop zone */
.upload-zone {
    border: 1px dashed var(--border-color-light);
    border-radius: 12px;
    background-color: rgba(0,0,0,0.02);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dark-theme .upload-zone {
    border-color: var(--border-color-dark);
    background-color: rgba(255,255,255,0.02);
}
.upload-zone:hover {
    border-color: #000000;
    background-color: rgba(0,0,0,0.04);
}
.dark-theme .upload-zone:hover {
    border-color: #ffffff;
    background-color: rgba(255,255,255,0.04);
}

/* Presets selection */
.preset-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.preset-avatar:hover {
    transform: scale(1.1);
}
.preset-avatar.selected {
    border-color: #000000;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}
.dark-theme .preset-avatar.selected {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255,255,255,0.25);
}

/* Custom Badge helper */
.badge-xs {
    font-size: 9px;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.required::after {
    content: " *";
    color: #bb2d3b;
    font-weight: 600;
}

/* Custom internal styles for user_dashboard.html */

.pointer {
    cursor: pointer;
}

.copy-content-icon {
    border: 1px solid #f2f2f2;
    padding:4px 9px;background:#f2f2f2;border-radius:50px; margin-left:6px;
}

.copy-content-icon:hover {
    border: 1px solid #ccc2a4;
}

/* Visual layout spacing */
.badge-xs {
    font-size: 9px;
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* Avatar placeholder & profile image styles */
.avatar-wrapper {
    position: relative;
    display: inline-block;
    width: 130px;
    height: 130px;
}

.avatar-placeholder-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 4px solid var(--border-color-light, #eaeaea);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-theme .avatar-placeholder-svg {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-color: var(--border-color-dark, #333);
}

.avatar-placeholder-icon {
    font-size: 54px;
    color: #888888;
    transition: color 0.3s ease;
}

/* Hover states for profile editing */
.upload-trigger-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #000000;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: 2px solid #ffffff;
}

.dark-theme .upload-trigger-overlay {
    background-color: #ffffff;
    color: #000000;
    border-color: #121212;
}

.upload-trigger-overlay:hover {
    transform: scale(1.1);
}

/* Drag and drop zone */
.drag-drop-box {
    border: 1px dashed var(--border-color-light, #eaeaea);
    border-radius: 12px;
    background-color: rgba(0,0,0,0.01);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.dark-theme .drag-drop-box {
    border-color: var(--border-color-dark, #333);
    background-color: rgba(255,255,255,0.01);
}

.drag-drop-box:hover, .drag-drop-box.dragging {
    border-color: #000000;
    background-color: rgba(0,0,0,0.03);
}

.dark-theme .drag-drop-box:hover, .dark-theme .drag-drop-box.dragging {
    border-color: #ffffff;
    background-color: rgba(255,255,255,0.03);
}

/* Reader Preset Avatars */
.preset-avatar-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    object-fit: cover;
}

.preset-avatar-btn:hover {
    transform: scale(1.1);
}

.preset-avatar-btn.selected {
    border-color: #000000;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.dark-theme .preset-avatar-btn.selected {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255,255,255,0.25);
}

/* Author list visual polish */
.author-item-row {
    position: relative;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.dark-theme .author-item-row {
    border-bottom-color: rgba(255,255,255,0.06);
}

.author-item-row:last-child {
    border-bottom: none;
}

.author-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.08);
}
.dark-theme .author-avatar-img {
    border-color: rgba(255,255,255,0.08);
}

/* Custom styled follow buttons */
.btn-follow {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.btn-follow.following {
    background-color: #212529; /* dark button when following */
    color: #ffffff;
    border-color: #212529;
}

.dark-theme .btn-follow.following {
    background-color: #f8f9fa;
    color: #212529;
    border-color: #f8f9fa;
}

.related-card {
    background: var(--bg-card-light);
    border: 1px solid var(--border-color-light);
    border-radius: var(--bs-border-radius);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    transition: box-shadow var(--bs-accordion-transition), transform var(--bs-accordion-transition);
}

.fs-13 {
    font-size: 13px !important;
}

.fs-14 {
    font-size: 14px !important;
}

img { filter: blur(0); transition: filter 300ms ease; background: var(--bg-card-dark)}
img.loaded { filter: none; }

.dots {
    border: 1px solid #e5e1e166;
    padding: 3px 7px;
    border-radius: 50px;
}

.dots:hover {
    border: 1px solid #454545;
}

.form-switch .form-check-input {
    width: 2em !important;
}

.accordion-icon {
    font-size: 18px;
    background: #09090b;
    padding: 7px 9px;
    border-radius: 50px;
    color: #fff;
}

@media (max-width: 680px) {
    .md-d-none {
        display: none !important;
    }

    .article-cover-detail {
        height: 260px;
    }
}
