/* components.css — Sidebar widget, GenLog items, hero section, table, timeline, badges
   Reduced from 859 lines (R4 split: buttons → buttons.css, forms → forms.css, cards → cards.css) */

/* ==================== SIDEBAR PROFILE WIDGET ==================== */
.sidebar-profile-widget {
  position: fixed;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width, 170px);
  z-index: 55;
  background: white;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-icon-only .sidebar-profile-widget {
  padding: 0.25rem 0.25rem;
}

body.sidebar-hidden .sidebar-profile-widget {
  width: 0;
  padding: 0.25rem 0;
  overflow: hidden;
  border-right: none;
}

.sidebar-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sidebar-profile-btn:hover {
  background: #f1f5f9;
}

.sidebar-profile-img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
}

.sidebar-profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.sidebar-profile-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-role {
  font-size: 0.65rem;
  color: #64748b;
}

body.sidebar-icon-only .sidebar-profile-info {
  display: none;
}

body.sidebar-icon-only .sidebar-profile-btn {
  justify-content: center;
}

/* ==================== ADD GenLog ROW ==================== */
.add-GenLog-row td {
  padding: 0.625rem 1.5rem 0.625rem 3rem;
  background-color: #f8fafc;
  border-top: 1px dashed #e2e8f0;
}

/* ==================== MY GenLogS LIST ==================== */
.my-GenLog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  animation: rowSlideIn 0.25s ease-out;
}

.my-GenLog-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #020617 100%);
  color: white;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.25);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3rem 2rem;
    min-height: 500px;
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-graphic {
  width: 8rem;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .hero-graphic {
    width: 16rem;
    height: 16rem;
  }
}

.hero-graphic-inner {
  position: absolute;
  inset: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(255, 255, 255, 0.2); }
  50% { border-color: rgba(96, 165, 250, 0.4); }
}

/* ==================== TABLE ==================== */
.table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table thead {
  background-color: #f8fafc;
}

.data-table th {
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  padding: 0.875rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  color: #334155;
}

.data-table tbody tr {
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

/* ==================== VERTICAL TIMELINE ==================== */
.timeline-container {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #e2e8f0, #f1f5f9);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.timeline-content {
  padding-left: 1rem;
  min-height: 2rem;
}

.timeline-item-verified {
  padding-left: 0.5rem;
  border-left: 3px solid #10b981;
  border-radius: 0 4px 4px 0;
  margin-left: -0.5rem;
}

/* ==================== VERIFIED / UNVERIFIED BADGES ==================== */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 10px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.unverified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  white-space: nowrap;
}
