/**
 * @file
 * Subtheme specific CSS.
 */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px; /* Width of the scrollbar */
}

::-webkit-scrollbar-thumb {
  background-color: #1379a7; /* Scrollbar color */
  border-radius: 10px; /* Roundness of the scrollbar */
  border: 3px solid #ffffff; /* Space around the scrollbar thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0f638c; /* Darker color on hover */
}

::-webkit-scrollbar-track {
  background-color: #f8f9fa; /* Background of the scrollbar track */
  border-radius: 10px; /* Roundness of the track */
}

.region-top-header-form {
  margin-right: 0px !important;
}

.site-footer .nav-link {
  color: white !important;
}

.site-footer .nav-link:hover {
  color: #1379a7 !important;
}

.site-footer .is-active {
  color: #1379a7 !important;
}

body,
html {
  height: 100%;
  margin: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.content {
  flex: 1;
}

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.site-footer__top {
  display: flex;
  justify-content: center;
}

.nav-item {
  display: flex;
  justify-content: center;
}

.title {
  text-align: center;
  color: #292826 !important;
  margin-top: 20px;
}

.btn-primary {
  background-color: #1d84c3;
}

.navbar-brand {
  font-weight: 700;
  font-size: xx-large;
  color: white;
}

.navbar-brand img {
  height: 50px;
  width: 50px;
}

.site-footer {
  margin-top: 10px;
}

.custom-fields {
  margin-bottom: 10px;
}

.region-top-header-form {
  margin-right: 0px;
}

#edit-actions {
  text-align: center;
}

#full-screen-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#full-screen-loader .loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
}
  100% {
    transform: rotate(360deg);
}
}

.button--primary {
  margin-bottom: 10px;
}

.comment-form__title {
  display: none;
}

.nav-link--node-add-question {
  background: white;
  color: black !important;
  border-radius: 50px;
}

.nav-link--node-add-application {
  background: white;
  color: black !important;
  border-radius: 50px;
}

.nav-link--user-register {
  background: white;
  color: black !important;
  border-radius: 50px;
}

.nav-link--user-register::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.responsive-menus.responsified span.toggler {
  padding: 10px;
  background: none;
  color: #fff;
  box-shadow: none;
  font-size: 2.35em;
}

.responsive-menus.responsified .responsive-menus-simple {
  width: 100px;
  right: 20px;
  background-color: #1d84c3;
  box-shadow: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  #rm-removed {
    width: 200px !important;
    background: #1379a7;
  }

  .nav-link--node-add-question {
    margin: 5px !important;
    background: none !important;
    color: white !important;
    border-radius: none !important;
  }

  .nav-link--node-add-application {
    margin: 5px !important;
    background: none !important;
    color: white !important;
    border-radius: none !important;
}

  .nav-link--user-register {
    margin: 5px !important;
    background: none !important;
    color: white !important;
    border-radius: none !important;
  }
}

.page-user-register .dialog-off-canvas-main-canvas {
  height: auto;
  display: block;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-user-register .btn-primary {
  margin-bottom: 10px !important;
}

.help-block {
  display: none !important;
}

#page,
#main-wrapper,
.region-primary-menu .menu-item a.is-active,
.region-primary-menu .menu-item--active-trail a {
  background: #f1f5f9 !important;
}

.alert {
  margin-top: 20px;
}

.alert a {
  color: black;
}

/* Table Styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #ffffff;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow for table */
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb; /* Light gray border */
}

.table th {
  background-color: #f3f4f6; /* Light gray background for header */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f2937; /* Dark gray text */
}

.table tr:hover {
  background-color: #f9fafb; /* Light hover effect */
}

.table td {
  color: #4b5563; /* Darker gray for text */
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f9fafb; /* Light gray for odd rows */
}

/* Responsive Table */
@media (max-width: 768px) {
  .table thead {
    display: none;
  }

  .table, .table tbody, .table tr, .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    margin-bottom: 15px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
  }

  .table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }

  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    padding-right: 10px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1f2937;
  }
}
/* Dark Mode Styles */

/* Style individual cards */
body.darkmode--activated .card {
  color: #e0e0e0; /* Light text color */
  box-shadow:
    0 1px 1px hsl(0deg 0% 100% / 0.075),
    0 2px 2px hsl(0deg 0% 100% / 0.075),
    0 4px 4px hsl(0deg 0% 100% / 0.075),
    0 8px 8px hsl(0deg 0% 100% / 0.075),
    0 16px 16px hsl(0deg 0% 100% / 0.075); /* Lighter shadows for dark mode */
}

/* Card title */
body.darkmode--activated .card-title {
  color: #23aeff; /* Bright color for card titles */
}

/* Card links */
body.darkmode--activated .card-link {
  color: #e0e0e0; /* Light text color for card links */
}

body.darkmode--activated .card-link:hover {
  color: #ffffff; /* Ensure text remains white on hover */
}

/* Card icons */
body.darkmode--activated .card-icon {
  color: #23aeff; /* Bright color for card icons */
}

/* Page title */
body.darkmode--activated .page-title {
  color: #e0e0e0; /* Light text color for page title */
}

body.darkmode--activated #card-search {
  color: #e0e0e0; /* Light text color */
  box-shadow:
    0 1px 1px hsl(0deg 0% 100% / 0.075),
    0 2px 2px hsl(0deg 0% 100% / 0.075),
    0 4px 4px hsl(0deg 0% 100% / 0.075),
    0 8px 8px hsl(0deg 0% 100% / 0.075),
    0 16px 16px hsl(0deg 0% 100% / 0.075); /* Lighter shadows for dark mode */
}

/* Navbar main */
body.darkmode--activated #navbar-main a {
  color: #23aeff; /* Bright color for navbar links */
}

/* Load more and load less buttons */
body.darkmode--activated #load-more-btn,
body.darkmode--activated #load-less-btn {
  background-color: #0056b3; /* Darker background for buttons */
  color: #ffffff; /* Light text color */
}

body.darkmode--activated #load-more-btn:hover {
  background-color: #004a80; /* Darker hover effect */
}

/* Arrow image */
body.darkmode--activated .arrow-image {
  filter: brightness(0.8); /* Slightly dim the arrow image in dark mode */
}

body.darkmode--activated #header {
  background-color: #666;
}

body.darkmode--activated #rm-removed {
  background: #666;
}