/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

/* Hide scrollbar for Chrome, Safari and Opera */
.custom-card-container::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.custom-card-container,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

* {
  white-space: no;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 20px; */
}

/* Container for horizontal layout */
.custom-card-container {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 20px;
  overflow-x: auto;
  align-items: flex-start;
}

.custom-user-card {
  background: rgb(255, 255, 255);
  border-radius: 20px;
  padding: 32px;
  width: 300px;
  min-width: 300px;
  height: 500px;
  flex-shrink: 0;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); */
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.custom-user-card:hover {
  transform: scale(1.01);
}

.card-user-badge-icon {
  width: 9px;
  height: 9px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border-radius: 99999px;
  padding: 3px;
}

.custom-user-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.custom-user-card-role {
  font-size: 25px;
  font-weight: 600;
  color: #667eea;
}

.custom-user-card-action-buttons {
  display: flex;
  gap: 8px;
}

.custom-user-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.custom-user-card-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-user-card-avatar svg {
  width: 36px;
  height: 36px;
  fill: white;
}

.custom-user-card-user-info {
  flex: 1;
}

.custom-user-card-user-name {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.custom-user-card-username {
  color: #6b7280;
  font-size: 14px;
  display: flex;
  align-items: center;
  /* gap: 8px; */
}

.custom-user-card-username::after {
  /* content: "|"; */
  color: #d1d5db;
}

.custom-user-card-status {
  color: #dc2626;
  font-weight: 500;
}

.custom-user-card-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-user-card-icon-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.custom-user-card-icon-btn svg {
  width: 18px;
  height: 18px;
}

.custom-user-card-icon-btn.custom-user-card-delete {
  border-color: #fecaca;
}

.custom-user-card-icon-btn.custom-user-card-delete svg {
  fill: #ef4444;
}

.custom-user-card-icon-btn.custom-user-card-delete:hover {
  background: #fef2f2;
}

.custom-user-card-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.custom-user-card-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  /* padding: 6px 12px; */
  margin-left: -5px;
  border-radius: 1px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: default;
}

.custom-user-card-badge.custom-user-card-inactive {
  background: #ffffff;
  /* color: #26dc72;   */
  cursor: pointer;
  transition: all 0.2s;
  /* border: 1px solid #fee2e2; */
}

.custom-user-card-badge.custom-user-card-inactive:hover {
  /* background: #fef2f2; */
}

.custom-user-card-badge.custom-user-card-inactive:active {
  transform: translateY(0);
}

.custom-user-card-badge.custom-user-card-analyste {
  background: #dbeafe;
  color: #2563eb;
}

.custom-user-card-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.custom-user-card-contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 24px;
}

.custom-user-card-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #4b5563;
  font-size: 14px;
  position: relative;
}

.custom-user-card-contact-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.custom-user-card-contact-content img.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: opacity(0.5);
}

.custom-user-card-contact-item svg.contact-icon {
  width: 20px;
  height: 20px;
  fill: #9ca3af;
}

.custom-user-card-copy-btn {
  opacity: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-user-card-copy-btn:hover {
  background: #c8c8c9;
}

.custom-user-card-copy-btn:hover svg {
  fill: white;
}

.custom-user-card-copy-btn svg {
  width: 14px;
  height: 14px;
  fill: #6b7280;
  transition: fill 0.2s ease;
}

.custom-user-card-contact-item:hover .custom-user-card-copy-btn {
  opacity: 1;
}

.custom-user-card-permissions {
  margin-bottom: 24px;
  flex: 1;
  overflow-y: auto;
}

.custom-user-card-section-title {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.custom-user-card-permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-user-card-permission-tag {
  padding: 6px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
}

.custom-user-card-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

.custom-user-card-footer-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-user-card-footer-label {
  color: #9ca3af;
  font-size: 12px;
}

.custom-user-card-footer-value {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

/* Toast notification for copy feedback */
.custom-user-card-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.custom-user-card-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}