﻿.Page-section {
  min-height: 100vh;
}

.search-btn {
  padding: 10px 20px;
  background-color: transparent;
  color: #a1d0ff;
  font-size: 1em;
  border: 1px solid #a1d0ff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-btn:hover {
  background-color: #a1d0ff;
  color: #fff;
}
.search-btn:active {
  background-color: #3b9dff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px white;
}

.site-navbar {
  background-color: #a1d0ff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom-color: #80a6cc;
  height: 15vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 8%;
  margin-right: 8%;
}

.navbar-logo img {
  height: 85px;
  display: flex;
  align-items: center;
}

.navbar-link-container .navbar-navigation {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}
.navbar-link-container .navbar-navigation .nav-items {
  margin-left: 20px;
}
.navbar-link-container .navbar-navigation .nav-items .nav-links {
  text-decoration: none;
  color: #212529;
  font-size: larger;
}
.navbar-link-container .navbar-navigation .nav-items .nav-links:hover {
  color: #80a6cc;
  text-decoration: underline;
}

.header-welcome {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}
.header-welcome .welcome-text {
  color: #212529;
  margin-right: 1rem;
  font-weight: bold;
}
.header-welcome .admin-page-button {
  background-color: #f3f7fe;
  color: #212529;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  text-decoration: none;
  margin-right: 1rem;
}
.header-welcome .admin-page-button:hover {
  background-color: #95b8f6;
}
.header-welcome .logout-button {
  background-color: #f3f7fe;
  color: #212529;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.header-welcome .logout-button:hover {
  background-color: #95b8f6;
}

.footer-container {
  text-align: center;
  height: 7vh;
  font-size: large;
  padding-top: 1%;
}

@media (max-width: 767px) {
  .site-navbar {
    height: auto;
    width: 103%;
  }
  .nav-container {
    flex-direction: column;
  }
  .navbar-logo img {
    height: 60px;
  }
  .footer-container {
    height: auto;
    font-size: medium;
  }
}
.Page-section {
  min-height: 100vh;
}

.search-btn {
  padding: 10px 20px;
  background-color: transparent;
  color: #a1d0ff;
  font-size: 1em;
  border: 1px solid #a1d0ff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-btn:hover {
  background-color: #a1d0ff;
  color: #fff;
}
.search-btn:active {
  background-color: #3b9dff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px white;
}

.home-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.home-container .search-bar {
  position: absolute;
  right: 20px;
  top: 20px;
}
.home-container .search-bar .input-style {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #555;
  outline: none;
  width: 400px;
  margin-top: 1rem;
}
.home-container .search-bar .input-style:focus {
  border-color: #a1d0ff;
  box-shadow: 0 0 8px rgba(128, 166, 204, 0.5);
}
.home-container .about-text {
  text-align: center;
  margin-top: 15vh;
  margin-bottom: 20vh;
}
.home-container .about-text .title {
  color: #212529;
}
.home-container .about-text .title .blue {
  color: #a1d0ff;
}
.home-container .about-text .content {
  color: #212529;
  max-width: 823px;
  margin: 20px auto 0;
}
.home-container .category-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.home-container .category-buttons .category-button {
  font-family: monospace;
  background-color: #f3f7fe;
  color: #a1d0ff;
  border: none;
  border-radius: 8px;
  min-width: 150px;
  height: 45px;
  padding: 0 15px;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.home-container .category-buttons .category-button:hover {
  background-color: #a1d0ff;
  box-shadow: 0 0 0 5px #80a6cc;
  color: #ffffff;
}

@media (max-width: 768px) {
  .home-container {
    padding: 0 10px;
  }
  .home-container .search-bar {
    position: sticky;
    width: 80%;
    margin-left: 11%;
  }
  .home-container .search-bar .input-style {
    flex-grow: 1;
    margin-right: 10px;
    max-width: calc(100% - 80px);
  }
  .home-container .search-bar .search-btn {
    padding: 10px 15px;
    font-size: 16px;
    flex-shrink: 0;
  }
  .home-container .about-text {
    margin-top: 30px;
    margin-bottom: 40px;
  }
  .home-container .about-text .content {
    max-width: 100%;
  }
  .home-container .category-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .home-container .category-buttons .category-button {
    flex: 1 1 18%;
    max-width: 19%;
    padding: 10px;
    margin: 5px 0;
    font-size: 12px;
    text-align: center;
  }
}
.Page-section {
  min-height: 100vh;
}

.search-btn {
  padding: 10px 20px;
  background-color: transparent;
  color: #a1d0ff;
  font-size: 1em;
  border: 1px solid #a1d0ff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-btn:hover {
  background-color: #a1d0ff;
  color: #fff;
}
.search-btn:active {
  background-color: #3b9dff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px white;
}

.category-tabs {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  padding: 0 20px;
  margin-top: 5px;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 20px;
}
.category-tabs .tab {
  padding: 10px 20px;
  text-decoration: none;
  color: #555;
  font-size: 16px;
  border: none;
  background: none;
  cursor: pointer;
}
.category-tabs .tab.active, .category-tabs .tab:hover {
  color: #a1d0ff;
}

.Page-section {
  padding-top: 70px;
}

.search-section {
  position: relative;
  z-index: 10;
  padding: 20px;
  margin-right: 20px;
}
.search-section .search-bar {
  position: absolute;
  right: 0;
  top: -50px;
}
.search-section .search-bar .input-style {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #555;
  outline: none;
  width: 400px;
  margin-top: 1rem;
}
.search-section .search-bar .input-style:focus {
  border-color: #a1d0ff;
  box-shadow: 0 0 8px rgba(128, 166, 204, 0.5);
}

.trust-list {
  height: 100%;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #dee2e6;
}

.trust-title {
  text-align: center;
  margin-bottom: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
}
.trust-item:last-child {
  border-bottom: none;
}

.trust-name {
  margin: 0;
  flex: 1;
  font-size: 1.2em;
}

.trust-button {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .Page-section {
    padding-top: 20px;
  }
  .category-tabs {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }
  .category-tabs .tab {
    width: 100%;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
  }
  .category-tabs .tab:last-child {
    border-bottom: none;
  }
  .search-section {
    padding: 10px 5%;
  }
  .search-section .search-bar {
    position: sticky;
    top: 0;
    width: 90%;
    white-space: nowrap;
  }
  .search-section .search-bar .input-style {
    width: 100%;
    margin-top: 0;
  }
  .search-section .search-bar .search-btn {
    padding: 10px;
  }
  .trust-list {
    width: 100%;
    margin: 0;
    padding: 10px;
  }
  .trust-list .trust-item {
    align-items: flex-start;
    padding: 10px 0;
  }
  .trust-list .trust-item .trust-name {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .trust-list .trust-item .trust-button {
    margin: 0;
  }
}
.Page-section {
  min-height: 100vh;
}

.search-btn {
  padding: 10px 20px;
  background-color: transparent;
  color: #a1d0ff;
  font-size: 1em;
  border: 1px solid #a1d0ff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-btn:hover {
  background-color: #a1d0ff;
  color: #fff;
}
.search-btn:active {
  background-color: #3b9dff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px white;
}

.modal-dialog {
  max-width: 900px;
  min-height: 900px;
}
.modal-content {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.modal-header {
  background: #a1d0ff;
  color: #ffffff;
  padding: 2rem;
}
.modal-header .modal-title {
  font-size: 1.5rem;
  font-weight: bold;
}
.modal-header .close {
  display: none;
}
.modal-body {
  background: #ffffff;
  padding: 2rem;
  color: #212529;
}
.modal-body h4 {
  color: #80a6cc;
}
.modal-body p {
  margin-bottom: 1rem;
}
.modal-footer {
  background: #a1d0ff;
  padding: 1rem;
  border-top: 1px solid #dee2e6;
}
.modal-footer .btn {
  color: #f3f7fe;
  background-color: transparent;
  border: 1px solid #f3f7fe;
}
.modal-footer .btn:hover {
  color: #ffffff;
  background-color: #c4d8fa;
  border-color: #c4d8fa;
}

.Page-section {
  min-height: 100vh;
}

.search-btn {
  padding: 10px 20px;
  background-color: transparent;
  color: #a1d0ff;
  font-size: 1em;
  border: 1px solid #a1d0ff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.search-btn:hover {
  background-color: #a1d0ff;
  color: #fff;
}
.search-btn:active {
  background-color: #3b9dff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px white;
}

.search-section-admin {
  position: relative;
  z-index: 10;
  top: 50px;
  margin: 20px;
}
.search-section-admin .manage-categories-btn {
  background-color: #28a745;
  color: white;
  margin-right: 1rem;
}
.search-section-admin .manage-categories-btn:hover {
  background-color: #1e7e34;
}
.search-section-admin .add-trust-btn {
  background-color: #28a745;
  color: white;
  margin-right: 1rem;
}
.search-section-admin .add-trust-btn:hover {
  background-color: #1e7e34;
}
.search-section-admin .search-bar {
  position: absolute;
  right: 0;
  top: -50px;
}
.search-section-admin .search-bar .input-style {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #555;
  outline: none;
  width: 400px;
  margin-top: 1rem;
}
.search-section-admin .search-bar .input-style:focus {
  border-color: #a1d0ff;
  box-shadow: 0 0 8px rgba(128, 166, 204, 0.5);
}

.alert-dismissible {
  position: fixed;
  z-index: 1051;
  right: 20px;
  top: 20px;
  width: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.alert-dismissible .close {
  position: absolute;
  top: 0;
  right: 0;
  color: red;
}

.trust-list {
  height: 100%;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #dee2e6;
}
.trust-list .trust-title {
  text-align: center;
  margin-bottom: 20px;
}

.trust-item {
  display: flex;
  gap: 3%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
}
.trust-item:last-child {
  border-bottom: none;
}
.trust-item > * {
  margin-right: 5px;
}
.trust-item .status-indicator {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.trust-item .status-indicator.active-status {
  background-color: green;
}
.trust-item .status-indicator.inactive-status {
  background-color: red;
}
.trust-item .trust-id, .trust-item .trust-name {
  margin: 0;
  font-size: 1.2em;
}
.trust-item .trust-button {
  margin-left: 10%;
  display: flex;
  align-items: center;
}

.manage-categories-modal .category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background-color: #f8f9fa;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.manage-categories-modal .category-item:not(:last-child) {
  margin-bottom: 1rem;
}
.manage-categories-modal .category-item button {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: bold;
  margin-left: 0.5rem;
}
.manage-categories-modal .category-item button:first-of-type {
  background-color: #f3f7fe;
  color: #212529;
}
.manage-categories-modal .category-item button:first-of-type:hover {
  background-color: #c4d8fa;
}
.manage-categories-modal .category-item button:last-of-type {
  background-color: #80a6cc;
  color: #ffffff;
}
.manage-categories-modal .category-item button:last-of-type:hover {
  background-color: #5c8dbd;
}
.manage-categories-modal #addCategoryForm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
}
.manage-categories-modal #addCategoryForm input[type=text] {
  flex-grow: 1;
  margin-right: 1rem;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.manage-categories-modal #addCategoryForm button {
  padding: 0.5rem 1rem;
  background-color: #a1d0ff;
  color: #ffffff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}
.manage-categories-modal #addCategoryForm button:hover {
  background-color: #6eb7ff;
}

@media (max-width: 768px) {
  .search-section-admin .search-bar {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
  }
  .search-section-admin .search-bar .input-style {
    width: 90%;
    margin-top: 0.5rem;
  }
  .search-section-admin .search-bar .search-btn,
  .search-section-admin .search-bar .add-trust-btn {
    width: 90%;
    margin: 0.5rem 0;
  }
  .trust-list .trust-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .trust-list .trust-item .status-indicator {
    margin-bottom: 0.5rem;
  }
  .trust-list .trust-item .trust-id, .trust-list .trust-item .trust-name, .trust-list .trust-item .admin-detail-btn, .trust-list .trust-item .edit-trust-btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}
