/* Override styles for dark theme */

/* Background colors */
body {
  background-color: #0F172A !important;
  color: #E2E8F0 !important;
}

/* Navigation */
.navbar {
  background-color: #0F172A !important;
  border-bottom: 1px solid #1E293B !important;
}

.navbar-nav .nav-link {
  color: #E2E8F0 !important;
}

.navbar-nav .nav-link:hover {
  color: #3CA3F4 !important;
}

/* Cards */
.card {
  background-color: #1E293B !important;
  border: 1px solid #1E293B !important;
}

.card-footer {
  background-color: #1E293B !important;
  border-top-color: #1E293B !important;
}

/* Button styling */
.btn-primary {
  background-color: #3CA3F4 !important;
  border-color: #3CA3F4 !important;
}

.btn-primary:hover {
  background-color: #2082D8 !important;
  border-color: #2082D8 !important;
}

/* Links */
a {
  color: #3CA3F4 !important;
}

a:hover {
  color: #69B9F9 !important;
}

/* Footer */
.footer {
  background-color: #0F172A !important;
  border-top: 1px solid #1E293B !important;
}

/* Post content */
.content {
  color: #E2E8F0 !important;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  color: #F8FAFC !important;
}

.content blockquote {
  border-left-color: #3CA3F4 !important;
  background-color: #1E293B !important;
}

.content pre, .content code {
  background-color: #1E293B !important;
}

/* Widget backgrounds */
.widget {
  background-color: #1E293B !important;
  border: 1px solid #1E293B !important;
}

/* Search form */
.search-toggle svg path {
  fill: #E2E8F0 !important;
}

.form-control {
  background-color: #1E293B !important;
  border: 1px solid #1E293B !important;
  color: #E2E8F0 !important;
}

.form-control:focus {
  border-color: #3CA3F4 !important;
}

/* Pagination */
.pagination .page-link {
  color: #3CA3F4 !important;
  background-color: #1E293B !important;
  border-color: #1E293B !important;
}

.pagination .page-link:hover {
  background-color: #3CA3F4 !important;
  color: #FFFFFF !important;
}

.pagination .active .page-link {
  background-color: #3CA3F4 !important;
  border-color: #3CA3F4 !important;
  color: #FFFFFF !important;
}

/* Article cards */
.article-card {
  background-color: #1E293B !important;
}

/* Author card */
.author-card {
  background-color: #1E293B !important;
}

/* Search overlay */
#searchModal .modal-content {
  background-color: #0F172A !important;
}

/* Fix contrast issues */
.text-dark {
  color: #F8FAFC !important;
}

.text-light {
  color: #CBD5E1 !important;
}

/* Cards hover effect */
.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Adjust text selection */
::selection {
  background: #3CA3F4 !important;
  color: #FFFFFF !important;
}

/* Additional dark mode fixes */
.dropdown-menu {
  background-color: #1E293B !important;
  border-color: #1E293B !important;
}

.dropdown-menu .dropdown-item {
  color: #E2E8F0 !important;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #0F172A !important;
  color: #3CA3F4 !important;
}

/* Fix header areas */
.header-height-fix {
  background-color: #0F172A !important;
}

/* Fix banner backgrounds */
.banner {
  background-color: #0F172A !important;
}

/* Categories and tags */
.bg-light {
  background-color: #1E293B !important;
}

/* Fix any remaining white backgrounds */
section {
  background-color: #0F172A !important;
}