/**
 * NEAT Admin Panel - Custom Styles
 */

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

/* Toast container */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Video preview */
.video-preview {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  background: #000;
}

/* Vertical video thumbnail (9:16 aspect ratio) */
.video-thumbnail-vertical {
  width: 130px;
  height: 214px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-thumbnail-vertical:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-thumbnail-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

/* Old horizontal thumbnail (keep for backwards compatibility) */
.video-thumbnail {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  background: #1a1a2e;
}

/* Stats cards */
.stat-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Table improvements */
.table-responsive {
  border-radius: 8px;
}

.table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* User avatar */
.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.875rem;
}

/* Action buttons */
.btn-action {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Sidebar active state */
.navbar-vertical .nav-link.active {
  background: rgba(32, 107, 196, 0.1);
  color: #206bc4;
  font-weight: 600;
}

/* Card hover effect */
.card-hoverable {
  transition: box-shadow 0.2s;
}

.card-hoverable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pending count badge */
.pending-badge {
  background: #f59f00;
  color: white;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

/* Modal video player */
.modal-video-container {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.modal-video-container video {
  width: 100%;
  max-height: 400px;
}

/* Empty state */
.empty-state {
  padding: 3rem;
  text-align: center;
  color: #626976;
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

/* Hashtag list */
.hashtag-item {
  display: inline-flex;
  align-items: center;
  background: #e9ecef;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin: 0.25rem;
  font-size: 0.875rem;
}

.hashtag-item .count {
  background: #206bc4;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

/* Badge color fixes */
.bg-purple {
  color: #fff !important;
}

.bg-red {
  color: #fff !important;
}

.bg-yellow {
  color: #fff !important;
}

.bg-green {
  color: #fff !important;
}

.bg-orange {
  color: #fff !important;
}

.bg-blue {
  background-color: #74c9be !important;
  color: #fff !important;
}

.bg-blue-mid {
  background-color: #3b82f6 !important;
  color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-card .display-5 {
    font-size: 1.5rem;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}
