.video-kyc-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background: #f7f8fa;
  min-height: 90vh;
}

.video-kyc-container {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  max-width: 1100px;
  width: 100%;
  overflow: hidden;
}

.kyc-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.kyc-inputs input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
}


/*.kyc-inputs input {*/
/*    padding: 10px;*/
/*    border: 1px solid #ccc;*/
/*    border-radius: 8px;*/
/*}*/
.kyc-left, .kyc-right {
  flex: 1 1 50%;
  padding: 30px;
  box-sizing: border-box;
}

.kyc-video-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  height: 340px;
}

.kyc-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#face-status {
    position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.kyc-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.btn .dark {
  background: #007bff; 
  color: #fff;
}
.btn.primary { background: #007bff; color: #fff; }
.btn.danger { background: #dc3545; color: #fff; }
.btn.success { background: #28a745; color: #fff; }
.btn:hover { opacity: 0.9; }

.kyc-logo img {
  width: 120px;
  margin-bottom: 20px;
}

.kyc-right h2 {
  color: #1a1a1a;
  margin-bottom: 10px;
}

.instructions {
  color: #555;
  margin-bottom: 25px;
  font-size: 14px;
}
.loader {
  margin-top: 15px;
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .video-kyc-container {
    flex-direction: column;
  }
  .kyc-left, .kyc-right {
    flex: 1 1 100%;
    padding: 20px;
  }
  .kyc-video-box {
    height: 260px;
  }
}

#capturesPreview {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
#capturesPreview img, #capturesPreview video {
    width: 100px;
    border-radius: 6px;
    border: 2px solid #ccc;
}
#kycResponse {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

#capturesPreview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.kyc-video_frame {
  width: 400px;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}
.kyc-info-cell strong {
  color: #333;
  display: inline-block;
  width: 70px;
}


/* Base table */
.kyc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.kyc-table thead {
  background-color: #007bff;
  color: #fff;
}

.kyc-table th, .kyc-table td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
}

.kyc-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.kyc-table tbody tr:hover {
  background: #f8f9fa;
}

/* Photo thumbnails */
.kyc-photo-thumb {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin: 3px;
  object-fit: cover;
  transition: transform 0.2s, border-color 0.2s;
}

.kyc-photo-thumb:hover {
  transform: scale(1.05);
  border-color: #007bff;
}

/* Video frame */
.kyc-video_frame {
  width: 180px;
  height: 120px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #000;
  display: block;
}

/* Status */
.status-badge {
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
}

.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-pending  { background: #fff3cd; color: #856404; }

/* Action buttons */
.kyc-actions {
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.kyc-actions button {
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  width: 90px;
  text-align: center;
  transition: 0.2s;
}

.kyc-actions .btn-approve {
  background-color: #28a745;
  color: #fff;
}

.kyc-actions .btn-reject {
  background-color: #dc3545;
  color: #fff;
}

.kyc-actions button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive behavior */
@media (max-width: 900px) {
  .responsive-kyc-table {
    border: 0;
  }

  .responsive-kyc-table thead {
    display: none;
  }

  .responsive-kyc-table tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .responsive-kyc-table td {
    display: block;
    text-align: right;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding: 8px 12px;
  }

  .responsive-kyc-table td:last-child {
    border-bottom: none;
  }

  .responsive-kyc-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 8px;
    font-weight: 600;
    color: #007bff;
    text-align: left;
  }

  .kyc-photo-thumb {
    width: 60px;
    height: 60px;
  }

  .kyc-video_frame {
    width: 100%;
    height: 200px;
  }

  .kyc-actions {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
}