/* file-dashboard-styles.css */

/* Style the card container */
.custom-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Style individual cards */
.card {
  border: 0 !important;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  transition: transform 0.2s;
  width: 250px;
  background-color: #fff;
  max-height: 250px;

  box-shadow:
    0 1px 1px hsl(0deg 0% 0% / 0.075),
    0 2px 2px hsl(0deg 0% 0% / 0.075),
    0 4px 4px hsl(0deg 0% 0% / 0.075),
    0 8px 8px hsl(0deg 0% 0% / 0.075),
    0 16px 16px hsl(0deg 0% 0% / 0.075);
}

.no-sidebars {
  background-color: #1379a7;
}

.card-title {
  color: #1379a7;
}

.site-name {
  color: white !important;
}

#navbar-main {
  justify-content: center;
}

#edit-submit {
  background-color: white !important;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Style card links */
.card-link {
  text-decoration: none !important;
  /* Remove underlines */
  color: #333;
  display: flex;
  justify-content: center;
}

.card-link:hover {
  border: none;
  transform: scale(1.05);
}

/* Style card icon */
.card-icon {
  font-size: 48px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.card-icon img {
  width: 30% !important;
}

.page-title {
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

@media (min-width: 64rem) {
  #center {
    padding: 0 0 8rem 0 !important;
  }
}

/* Style card title */
.card-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px !important;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-description {
  font-size: 13px;
  max-height: 60px;
  height: 60px;
  overflow: hidden;
}

/* Add styles for the search bar */
.search-bar {
  text-align: center;
  margin-bottom: 20px;
}

/* Style the search input */
#card-search {
  padding: 10px;
  width: 50%;
  border: 0 !important;
  box-shadow:
    0 1px 1px hsl(0deg 0% 0% / 0.075),
    0 2px 2px hsl(0deg 0% 0% / 0.075),
    0 4px 4px hsl(0deg 0% 0% / 0.075),
    0 8px 8px hsl(0deg 0% 0% / 0.075),
    0 16px 16px hsl(0deg 0% 0% / 0.075);
  border-radius: 5px;
  font-size: 16px;
}

@media (min-width: 64rem) {
  #center {
    padding: 0rem 0 8rem 0;
  }
}

/* Media query for responsive design */
@media screen and (max-width: 768px) {
  .custom-fields {
    flex-direction: column;
    align-items: center;
  }

  .card {
    max-width: 80%;
    /* Adjust for the desired maximum width */
  }
}

#navbar-main a {
  color: #1379a7;
  font-size: xxx-large !important;
}

.arrow-image {
  max-width: 35px;
}

/* CSS for hidden cards */
.card.hidden {
  opacity: 0;
  /* Hide the card by setting opacity to 0 */
  transform: scale(0.95);
  /* Slightly scale down the card */
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* Add transitions */
}

/* CSS for visible cards (optional) */
.card:not(.hidden) {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#load-more-btn,
#load-less-btn {
  display: block;
  margin: 20px auto;
  /* Adjust the margin as needed */
  padding: 10px 20px;
  background-color: #1379a7;
  /* Choose your desired color */
  color: #ffffff;
  /* Choose your desired text color */
  border: none;
  border-radius: 5px;
  cursor: pointer;


  box-shadow:
    0 1px 1px hsl(0deg 0% 0% / 0.075),
    0 2px 2px hsl(0deg 0% 0% / 0.075),
    0 4px 4px hsl(0deg 0% 0% / 0.075),
    0 8px 8px hsl(0deg 0% 0% / 0.075),
    0 16px 16px hsl(0deg 0% 0% / 0.075);
}

#load-more-btn:hover {
  background-color: #2980b9;
}

/* Dark Mode Styles */

/* Style individual cards */
body.darkmode--activated .card {
  background-color: #333333; /* Darker background for cards */
  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 */
}
