@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Oswald", sans-serif;
}

body {
  background: linear-gradient(135deg, #f4f8fb, #e8f1ff);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

header img:first-child {
  width: 70px;
}

header img:last-child {
  width: 60px;
}

/* Main */

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.desc {
  background: #fff;
  width: 100%;
  max-width: 750px;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.desc h3 {
  font-size: 2.1rem;
  color: #00253c;
  margin-bottom: 20px;
}

.desc h5 {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.desc h4 {
  font-size: 1.4rem;
  color: #e5de12;
  font-weight: 600;
}

/* Button */

.verify-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 15px 35px;
  background: #0056b3;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.verify-btn:hover {
  background: #003d80;
  transform: translateY(-3px);
}

/* Footer */

footer {
  background: #00253c;
  color: #fff;
  text-align: center;
  padding: 25px;
}

footer p {
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #00d9ff;
}
/* Search Container Styles */
.search-container {
  max-width: 700px;
  margin: 30px auto 0 auto;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 5px;
}

.search-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  position: relative;
}

.search-tab:hover {
  color: #475569;
  background: #f8fafc;
}

.search-tab.active {
  color: #6366f1;
  background: #eef2ff;
}

.search-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #6366f1;
  border-radius: 3px 3px 0 0;
}

.search-tab i {
  margin-right: 8px;
}

.search-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-input-wrapper input::placeholder {
  color: #94a3b8;
}

.search-btn {
  padding: 14px 32px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.search-btn:active {
  transform: translateY(0);
}

.search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.qr-scan-area {
  text-align: center;
  padding: 20px 0;
}

#qr-reader {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 15px;
  border-radius: 12px;
  overflow: hidden;
}

#qr-reader video {
  border-radius: 12px;
}

#qr-reader__dashboard_section_csr {
  display: none !important;
}

.qr-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.scan-btn {
  padding: 12px 32px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.scan-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.scan-btn.stop-btn {
  background: #ef4444;
}

.scan-btn.stop-btn:hover {
  background: #dc2626;
}

.scan-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.scan-status {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.scan-status.active {
  display: block;
  background: #fef3c7;
  color: #92400e;
}

.scan-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

.scan-status.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
}

.employee-info {
  margin-top: 25px;
  padding: 25px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 5px solid #6366f1;
  animation: slideDown 0.4s ease;
  display: none;
}

.employee-info.visible {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.employee-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.employee-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.employee-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.employee-name-title h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  color: #1e293b;
}

.employee-name-title .badge {
  display: inline-block;
  padding: 4px 12px;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.employee-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item .label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item .value {
  font-size: 15px;
  color: #1e293b;
  font-weight: 500;
}

.detail-item .value i {
  color: #10b981;
  margin-right: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-badge.Active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.Suspended {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge i {
  font-size: 8px;
}

.not-found {
  text-align: center;
  padding: 30px 20px;
  color: #ef4444;
}

.not-found i {
  font-size: 48px;
  margin-bottom: 10px;
  display: block;
}

.not-found h4 {
  margin: 0 0 5px 0;
  color: #991b1b;
}

.not-found p {
  margin: 0;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .search-container {
    margin: 20px 15px 0 15px;
    padding: 20px;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .employee-header {
    flex-direction: column;
    text-align: center;
  }

  .employee-details {
    grid-template-columns: 1fr;
  }

  .search-tabs {
    flex-direction: column;
    gap: 5px;
  }

  .search-tab {
    border-radius: 8px;
    text-align: center;
  }

  .search-tab.active::after {
    display: none;
  }

  .search-tab.active {
    background: #6366f1;
    color: white;
  }

  .qr-controls {
    flex-direction: column;
    align-items: center;
  }

  .scan-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive */

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }

  header img:last-child {
    width: 150px;
  }

  .desc {
    padding: 35px 25px;
  }

  .desc h3 {
    font-size: 1.7rem;
  }

  .desc h5 {
    font-size: 1rem;
  }

  .social-links {
    flex-wrap: wrap;
  }
}
