.fido2-sdk-modal .modal-dialog {
  max-width: 800px;
}

.fido2-sdk-modal .modal-content {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.fido2-sdk-card {
  transition: all 0.3s ease;
}

.fido2-sdk-header {
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fido2-sdk-logo {
  max-height: 40px;
  width: auto;
}

.fido2-sdk-container {
  padding: 24px;
}

.fido2-sdk-body {
  padding: 24px;
}

.fido2-sdk-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.fido2-sdk-table {
  width: 100%;
  margin-top: 16px;
}

.fido2-sdk-table th {
  font-weight: 600;
  color: #333;
  padding: 12px 16px;
  border-bottom: 2px solid #dee2e6;
}

.fido2-sdk-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.fido2-sdk-btn {
  padding: 10px 24px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.fido2-sdk-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fido2-sdk-btn:active {
  transform: translateY(0);
}

.fido2-sdk-btn-primary {
  color: white !important;
}

.fido2-sdk-status-badge {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.fido2-sdk-user-info {
  padding: 12px 16px;
  border-radius: 6px;
  background-color: #e7f1ff;
  border-left: 4px solid #0d6efd;
 }

 .fido2-sdk-table .text-danger {
  color: #dc3545 !important;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.fido2-sdk-table .text-danger:hover {
  color: #c82333 !important;
  text-decoration: underline;
}

.fido2-sdk-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .fido2-sdk-modal .modal-dialog {
     margin: 10px;
     max-width: calc(100% - 20px);
   }

   .fido2-sdk-table th,
  .fido2-sdk-table td {
    padding: 8px 12px;
    font-size: 14px;
  }

  .fido2-sdk-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .fido2-sdk-logo {
    max-height: 30px;
  }

  .fido2-sdk-status-badge {
    width: 100%;
    order: 3;
    margin-top: 8px;
  }

  .fido2-sdk-header .btn-close {
    order: 2;
    margin-left: auto;
  }

  .fido2-sdk-header .modal-title {
    order: 1;
  }

  .fido2-sdk-header .fido2-sdk-logo {
    order: 0;
  }
}

.fido2-sdk-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: fido2-sdk-spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes fido2-sdk-spin {
  to { transform: rotate(360deg); }
}

.fido2-sdk-device-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e7f1ff;
  color: #0d6efd;
  margin-right: 8px;
}

.fido2-sdk-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.fido2-sdk-empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.fido2-sdk-empty-state p {
  margin: 0;
  font-size: 16px;
}

.fido2-sdk-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.fido2-sdk-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}

.fido2-sdk-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.fido2-sdk-btn-group {
  display: flex;
  gap: 8px;
}

.fido2-sdk-btn-group .btn {
  flex: 1;
}

#fido2AddDeviceBtn {
  margin-top: 12px;
}

.fido2-sdk-alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.fido2-sdk-alert-success {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.fido2-sdk-alert-error {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.fido2-sdk-alert-info {
  background-color: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460;
}

.fido2-sdk-alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}
