body,
html {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  flex-wrap: wrap;
}

/* .left-banner {
  flex: 1 1 50%;
  background: url("/images/verify-header.jpg") center center/cover no-repeat;
  position: relative;
  color: white;
  min-height: 300px;
  background-color: #0003;
  z-index: 3;
} */
.left-banner {
  flex: 1 1 50%;
  position: relative;
  color: white;
  min-height: 300px;
  background: url("/images/img-1.jpg") center center/cover no-repeat;
  z-index: 1;
  overflow: hidden;
}

/* Overlay layer */
.left-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Overlay text should be on top */
.overlay-text {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.overlay-text {
  position: absolute;
  bottom: 50%;
  left: 20%;
}

.overlay-text h1 {
  font-size: 2.2rem;
  font-weight: bold;
}

.line {
  width: 60px;
  height: 3px;
  background: #f1c40f;
  margin-top: 8px;
}

.right-form {
  flex: 1 1 50%;
  background-color: #141111;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

#verify-form,
#verify-result {
  width: 100%;
  max-width: 400px;
}

.verify-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

#verify-form h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.form-line {
  width: 40px;
  height: 2px;
  background: #f1c40f;
  margin-bottom: 30px;
}

#verify-form input {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  background-color: #141111;
  color: white;
  border: 1px solid #888;
  margin-bottom: 20px;
  outline: none;
}

#verify-form button {
  width: 120px;
  padding: 12px;
  background: white;
  color: black;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 3px solid #f1c40f;
}

#verify-result h3 {
  margin-bottom: 10px;
  font-size: 30px;
  text-transform: uppercase;
}

.hidden {
  display: none;
}

.tick {
  margin: 0px !important;
  padding: 0px !important;
}

/* 🔁 Responsive Media Queries */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-banner,
  .right-form {
    flex: 1 1 100%;
    min-height: 300px;
  }

  .overlay-text h1 {
    font-size: 1.6rem;
  }

  #verify-form,
  #verify-result {
    max-width: 90%;
  }

  .verify-section {
    width: 100%;
  }

  html,
  body {
    overflow: scroll !important;
  }
}

/* Loader */
.loader-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}
.loader-icon {
  width: 200px;
  height: 200px;
}

.hidden {
  display: none;
}

#resultText strong {
  text-transform: uppercase;
  font-weight: bold;
  color: #f1c40f;
}

#back-button {
  padding: 12px;
  background: none;
  color: #f1c40f;
  border: 3px solid #f1c40f;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px;
  margin-top: 50px;
}

#resultText span {
  text-transform: uppercase;
  font-weight: bold;
  color: #0fa564;
  font-size: 18px;
}

.error-text {
  color: red !important;
}

#add-cert-form {
  display: block;
}

.form {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.form input {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  background-color: #141111;
  color: white;
  border: 1px solid #888;
  margin-bottom: 20px;
  outline: none;
}

.form button {
  width: 120px;
  padding: 12px;
  background: white;
  color: black;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 3px solid #f1c40f;
}

.header .logo img {
  width: 150px;
  cursor: pointer;
}

.header .profile img {
  cursor: pointer;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  font-family: sans-serif;
}

#certListPage {
  overflow: auto;
}

.header {
  width: 100%;
  height: 12vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  box-sizing: border-box;
}

.container.verify-cert-content {
  height: 88vh;
  display: flex;
  flex-direction: row;
}

/* Login Popup */
/* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Hide by default */
.hidden {
  display: none;
}

/* Modal Content Box */
.modal-content {
  background: #111;
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px #000;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-content input {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: none;
  background: #222;
  color: white;
}

.modal-content button {
  padding: 12px 20px;
  background-color: gold;
  color: black;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* Notification Toast */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background-color: #333;
  color: white;
  padding: 14px 20px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
  font-size: 14px;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.toast.success {
  background-color: #4caf50;
}

.toast.error {
  background-color: #f44336;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

@keyframes fadeout {
  from {
    opacity: 0.95;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Upload Box */
.upload-box {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 300px;
  color: black;
}

.upload-box h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.upload-box p {
  font-size: 12px;
  color: gray;
  margin: 10px 0 20px;
}

.upload-box input[type="file"] {
  display: none;
}

.upload-box label {
  display: inline-block;
  padding: 12px 20px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.upload-box label:hover {
  background-color: #005ec4;
}

.upload-result {
  margin-top: 15px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .overlay-text h1 {
    font-size: 1.6rem;
  }

  .upload-box {
    width: 90%;
  }
}

/* Certificate List */
.cert-list-page {
  padding: 60px 30px;
  background-color: #0d0d0d;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.cert-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cert-list-header h2 {
  color: #ffd700;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.cert-search-input {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  width: 280px;
  background-color: #fff;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cert-table-container {
  width: 100%;
  overflow-x: auto;
}

.cert-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1a1a1a;
  color: #f5f5f5;
  border-radius: 10px;
}

.cert-table thead {
  background-color: #222;
}

.cert-table th,
.cert-table td {
  padding: 16px 14px;
  text-align: center;
  border: 1px solid #333;
}

.cert-table th {
  font-weight: 600;
  color: #ffd700;
}

.cert-table tr:hover {
  background-color: #2c2c2c;
  transition: background-color 0.2s ease-in-out;
}

/* .pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.pagination button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.pagination button.active {
  background-color: #ffd700;
  color: black;
  font-weight: bold;
}

.pagination button:hover {
  background-color: #555;
} */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  margin-top: 25px;
  padding: 0 10px;
}

.pagination button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-size: 14px;
  min-width: 40px;
  flex-shrink: 0;
}

.pagination button.active {
  background-color: #ffd700;
  color: black;
  font-weight: bold;
}

.pagination button:hover {
  background-color: #555;
}

/* Optional: Make buttons slightly smaller on very small screens */
@media (max-width: 480px) {
  .pagination button {
    padding: 6px 10px;
    font-size: 13px;
  }
}

.actions {
  cursor: pointer;
  width: 30px;
  height: 30px;
  margin-right: 20px;
}

/* Menu */
.desk-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-menu {
  display: none;
}

.desk-menu,
.mob-menu {
  column-gap: 40px;
  cursor: pointer;

  a {
    text-decoration: none;
    color: #f1c40f;
    font-weight: 700;
  }

  li {
    list-style: none;
  }
}

@media screen and (max-width: 768px) {
  .desk-menu {
    display: none;
  }

  .mob-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
  }

  .cert-search-input {
    margin: 20px 0;
  }

  .actions {
    width: 15px;
    height: 15px;
    margin-right: 10px;
  }
}

/* No Data */
.cert-list-page {
  display: flex;
  flex-direction: column;
  min-height: 71.5vh;
}

.cert-table {
  flex: 1;
}

.no-data-cell {
  text-align: center;
  height: 100%;
  padding: 50px 0;
}

.no-data-cell img {
  width: 200px;
  max-width: 100%;
  opacity: 0.7;
}

/* Delete Popup */

.btn-danger {
  background-color: red !important;
  color: white !important;
}

.btn-secondary {
  background-color: #6c757d !important;
  color: white !important;
}

.login-fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
