.sidebar {
  width: 256px;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.5);
  border-right: 1px solid rgb(30, 41, 59);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 24px;
}

.logo-container {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgb(251, 146, 60);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-icon {
  font-size: 20px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.logo-subtext {
  font-size: 11px;
  color: rgb(148, 163, 184);
}

.sidebar-separator {
  height: 1px;
  background-color: rgb(30, 41, 59);
}

.sidebar-nav {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgb(148, 163, 184);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.2s;
}

.nav-item:hover {
  background-color: rgba(30, 41, 59, 0.5);
  color: #ffffff;
}

.nav-item-active {
  background-color: rgb(30, 41, 59);
  color: #ffffff;
}

.nav-icon {
  font-size: 18px;
  width: 20px;
  display: inline-block;
}

.nav-label {
  color: rgb(148, 163, 184);
}

.nav-label-active {
  color: #ffffff;
}

.sidebar-footer {
  padding: 16px;
}

.logout-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgb(148, 163, 184);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: background-color 0.2s;
}

.logout-button:hover {
  background-color: rgba(30, 41, 59, 0.5);
  color: #ffffff;
}

.logout-icon {
  font-size: 18px;
  width: 20px;
  display: inline-block;
}

.logout-text {
  color: rgb(148, 163, 184);
}

.logout-button:hover .logout-text {
  color: #ffffff;
}

.data-table-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-filters-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  max-width: 400px;
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
}

.filters-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: rgb(148, 163, 184);
  z-index: 1;
  pointer-events: none;
}

.search-input {
  flex: 1;
  height: 40px;
  padding-left: 40px;
  padding-right: 12px;
  border: 1px solid rgb(51, 65, 85);
  border-radius: 8px;
  background-color: rgb(30, 41, 59);
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: rgb(100, 116, 139);
}

.search-input:focus {
  border-color: rgb(148, 163, 184);
}

.table-wrapper {
  border-radius: 8px;
  border: 1px solid rgb(30, 41, 59);
  background-color: rgba(15, 23, 42, 0.5);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.table-header-row {
  border-bottom: 1px solid rgb(30, 41, 59);
}

.table-header {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgb(148, 163, 184);
  background-color: transparent;
  border-right: 1px solid rgb(30, 41, 59);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-header-last {
  border-right: none;
}

.table-row {
  border-bottom: 1px solid rgb(30, 41, 59);
  transition: background-color 0.2s;
}

.table-row:hover {
  background-color: rgba(30, 41, 59, 0.5);
}

.table-row-selected {
  background-color: rgba(59, 130, 246, 0.2) !important;
}

.table-cell {
  padding: 12px 16px;
  font-size: 14px;
  color: rgb(203, 213, 225);
  border-right: 1px solid rgb(30, 41, 59);
  vertical-align: middle;
}

.table-cell-last {
  border-right: none;
}

.cell-text {
  font-size: 14px;
  color: rgb(203, 213, 225);
}

.loading-container {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.empty-container {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-text {
  font-size: 14px;
  color: rgb(148, 163, 184);
  text-align: center;
}

.pagination {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-top: 8px;
}

.pagination-text {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.pagination-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.pagination-button {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgb(51, 65, 85);
  background-color: rgb(30, 41, 59);
  color: rgb(203, 213, 225);
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pagination-button:hover:not(.pagination-button-disabled) {
  background-color: rgb(51, 65, 85);
}

.pagination-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Multi-select styles */
.table-header-checkbox {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: center;
  border-right: 1px solid rgb(30, 41, 59);
}

.cell-checkbox {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: center;
  border-right: 1px solid rgb(30, 41, 59);
}

.row-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: rgb(59, 130, 246);
}

.table-row-checked {
  background-color: rgba(239, 68, 68, 0.1) !important;
}

.table-row-checked:hover {
  background-color: rgba(239, 68, 68, 0.15) !important;
}

.bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
}

.bulk-count {
  font-size: 14px;
  font-weight: 600;
  color: rgb(252, 165, 165);
}

.bulk-delete-btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background-color: rgb(239, 68, 68);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.bulk-delete-btn:hover {
  background-color: rgb(220, 38, 38);
}

.bulk-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bulk-clear-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgb(51, 65, 85);
  background-color: transparent;
  color: rgb(148, 163, 184);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.bulk-clear-btn:hover {
  background-color: rgb(30, 41, 59);
}

.multiselect-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgb(51, 65, 85);
  background-color: rgb(30, 41, 59);
  color: rgb(148, 163, 184);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.multiselect-toggle:hover {
  border-color: rgb(100, 116, 139);
  color: rgb(203, 213, 225);
}

.multiselect-toggle.active {
  border-color: rgba(239, 68, 68, 0.5);
  background-color: rgba(239, 68, 68, 0.15);
  color: rgb(252, 165, 165);
}
.avatar-cropper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.avatar-cropper-modal {
  background: #1f2937;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.avatar-cropper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #374151;
}

.avatar-cropper-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.avatar-cropper-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
}

.avatar-cropper-close:hover {
  background-color: #374151;
  color: #f9fafb;
}

.avatar-cropper-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar-cropper-area {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: grab;
  background: #111827;
}

.avatar-cropper-area:active {
  cursor: grabbing;
}

.avatar-cropper-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.avatar-cropper-overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.avatar-cropper-crop-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.avatar-cropper-hint {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

.avatar-cropper-controls {
  padding: 20px;
  border-top: 1px solid #374151;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #111827;
}

.avatar-cropper-zoom-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-cropper-zoom-control label {
  font-size: 14px;
  font-weight: 500;
  color: #d1d5db;
  min-width: 50px;
}

.avatar-cropper-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #374151;
  outline: none;
  -webkit-appearance: none;
}

.avatar-cropper-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  transition: background-color 0.2s;
  border: 2px solid #1f2937;
}

.avatar-cropper-slider::-webkit-slider-thumb:hover {
  background: #2563eb;
}

.avatar-cropper-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: 2px solid #1f2937;
  transition: background-color 0.2s;
}

.avatar-cropper-slider::-moz-range-thumb:hover {
  background: #2563eb;
}

.avatar-cropper-zoom-value {
  font-size: 14px;
  color: #9ca3af;
  min-width: 50px;
  text-align: right;
}

.avatar-cropper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.avatar-cropper-btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.avatar-cropper-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.avatar-cropper-btn-cancel {
  background: #374151;
  color: #d1d5db;
}

.avatar-cropper-btn-cancel:hover:not(:disabled) {
  background: #4b5563;
}

.avatar-cropper-btn-save {
  background: #3b82f6;
  color: white;
}

.avatar-cropper-btn-save:hover:not(:disabled) {
  background: #2563eb;
}

.user-profile-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 8px;
  overflow-y: auto;
}

.details-header {
  padding: 24px;
  border-bottom: 1px solid rgb(30, 41, 59);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgb(148, 163, 184);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.close-button:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.details-avatar-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.details-avatar-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid rgb(30, 41, 59);
  overflow: hidden;
  background-color: rgb(51, 65, 85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-avatar-placeholder {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
}

.avatar-edit-button {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgb(59, 130, 246);
  color: #ffffff;
  border: 3px solid rgb(15, 23, 42);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar-edit-button:hover:not(:disabled) {
  background-color: rgb(37, 99, 235);
  transform: scale(1.1);
}

.avatar-edit-button:active:not(:disabled) {
  transform: scale(0.95);
}

.avatar-edit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.avatar-delete-button {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgb(239, 68, 68);
  color: #ffffff;
  border: 3px solid rgb(15, 23, 42);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.avatar-delete-button:hover:not(:disabled) {
  background-color: rgb(220, 38, 38);
  transform: scale(1.1);
}

.avatar-delete-button:active:not(:disabled) {
  transform: scale(0.95);
}

.avatar-delete-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.details-identity {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.details-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.details-username {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.details-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.details-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: rgb(148, 163, 184);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: rgb(100, 116, 139);
}

.detail-value {
  font-size: 14px;
  color: rgb(226, 232, 240);
  word-break: break-all;
}

.details-bio {
  background-color: rgba(30, 41, 59, 0.5);
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  color: rgb(203, 213, 225);
  line-height: 1.5;
  white-space: pre-wrap;
}

.details-footer {
  padding: 24px;
  border-top: 1px solid rgb(30, 41, 59);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(248, 113, 113);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

.btn-secondary {
  background-color: rgba(51, 65, 85, 0.5);
  color: rgb(203, 213, 225);
  border: 1px solid rgb(51, 65, 85);
}

.btn-secondary:hover {
  background-color: rgb(51, 65, 85);
}

/* Reusing badge styles from global/UserProfiles if needed, or defining here */

.user-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 8px;
  overflow-y: auto;
}

.entries-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgb(30, 41, 59);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-button {
  background: none;
  border: none;
  color: rgb(148, 163, 184);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.close-button:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.back-button {
  font-size: 14px;
  padding: 6px 12px;
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid rgb(51, 65, 85);
  color: rgb(203, 213, 225);
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.back-button:hover {
  background-color: rgb(51, 65, 85);
  color: #ffffff;
}

.profile-details-wrapper {
  flex: 1;
  overflow-y: auto;
}

.info-button {
  font-size: 14px;
  padding: 8px 16px;
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: rgb(147, 197, 253);
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 100;
  position: relative;
}

.info-button:hover {
  background-color: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.7);
  color: rgb(191, 219, 254);
  transform: translateY(-1px);
}

.info-button:active {
  transform: translateY(0);
}

.entries-title-section {
  padding: 24px;
  border-bottom: 1px solid rgb(30, 41, 59);
}

.entries-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.entries-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.entries-count {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.entries-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.loading-container {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.empty-container {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: rgb(148, 163, 184);
}

.empty-subtitle {
  font-size: 14px;
  color: rgb(100, 116, 139);
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry-card {
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s;
}

.entry-card:hover {
  border-color: rgb(51, 65, 85);
}

.entry-card.entry-winner {
  border-color: rgba(245, 158, 11, 0.5);
  background-color: rgba(245, 158, 11, 0.05);
}

.entry-card.entry-hidden {
  opacity: 0.6;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.entry-contest-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-contest-title {
  font-size: 14px;
  color: rgb(203, 213, 225);
  font-weight: 500;
}

.entry-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(203, 213, 225);
  text-transform: capitalize;
}

.badge-type-news {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-type-caption {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-type-video {
  background-color: rgba(236, 72, 153, 0.2);
}

.badge-type-battle {
  background-color: rgba(239, 68, 68, 0.2);
}

.badge-type-roast {
  background-color: rgba(245, 158, 11, 0.2);
}

.badge-winner {
  background-color: rgba(245, 158, 11, 0.2);
  color: rgb(251, 191, 36);
}

.badge-rank {
  background-color: rgba(59, 130, 246, 0.2);
  color: rgb(96, 165, 250);
}

.badge-hidden {
  background-color: rgba(51, 65, 85, 0.5);
  color: rgb(148, 163, 184);
}

.entry-content {
  margin-bottom: 12px;
}

.entry-text {
  font-size: 14px;
  color: rgb(203, 213, 225);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.entry-media {
  margin-top: 8px;
}

.entry-image {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 8px;
}

.entry-video-link {
  color: rgb(96, 165, 250);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.entry-video-link:hover {
  color: rgb(147, 197, 253);
  text-decoration: underline;
}

.entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgb(30, 41, 59);
}

.entry-date {
  font-size: 12px;
  color: rgb(100, 116, 139);
}

.entry-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.entry-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-icon {
  font-size: 16px;
}

.stat-value {
  font-size: 14px;
  color: rgb(148, 163, 184);
  font-weight: 500;
}

.user-profiles-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-split-view {
  display: flex;
  gap: 24px;
}

.list-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: flex 0.3s ease;
}

.details-pane {
  flex: 0 0 450px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.page-subtitle {
  font-size: 14px;
  color: rgb(148, 163, 184);
  margin: 0;
}

.card {
  border-radius: 8px;
  border: 1px solid rgb(30, 41, 59);
  background-color: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid rgb(30, 41, 59);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.card-content {
  padding: 20px;
}

.profile-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.avatar-container {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background-color: rgb(51, 65, 85);
  flex-shrink: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgb(51, 65, 85);
}

.avatar-placeholder-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.profile-email {
  font-size: 12px;
  color: rgb(148, 163, 184);
}

.cell-text {
  font-size: 14px;
  color: rgb(203, 213, 225);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(203, 213, 225);
}

.badge-author {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-reader {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-verified {
  background-color: rgba(34, 197, 94, 0.2);
}

.badge-unverified {
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid rgb(51, 65, 85);
}

.badge-banned {
  background-color: rgba(239, 68, 68, 0.2);
}

.status-container {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.actions-container {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.action-button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(203, 213, 225);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.action-button:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

.ban-button {
  background-color: rgba(239, 68, 68, 0.1);
}

.delete-button {
  background-color: rgba(239, 68, 68, 0.1);
}

.loading-container {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.empty-container {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: rgb(148, 163, 184);
}

.empty-subtitle {
  font-size: 14px;
  color: rgb(100, 116, 139);
}

/* Hide 'Joined' column in split view to save space */
.list-pane.pane-compact .data-table th:nth-child(5),
.list-pane.pane-compact .data-table td:nth-child(5) {
  display: none;
}
.contest-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 8px;
  overflow-y: auto;
}

.details-header {
  padding: 24px;
  border-bottom: 1px solid rgb(30, 41, 59);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.details-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-button {
  background: none;
  border: none;
  color: rgb(148, 163, 184);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
  flex-shrink: 0;
}

.close-button:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.details-type-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.details-identity {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.details-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

.details-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.details-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: rgb(148, 163, 184);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: rgb(100, 116, 139);
}

.detail-value {
  font-size: 14px;
  color: rgb(226, 232, 240);
  word-break: break-all;
}

.details-description {
  background-color: rgba(30, 41, 59, 0.5);
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  color: rgb(203, 213, 225);
  line-height: 1.5;
  white-space: pre-wrap;
}

.media-preview {
  margin-top: 8px;
}

.media-thumbnail {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid rgb(30, 41, 59);
}

.caption-image-preview {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgb(30, 41, 59);
}

.caption-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-link {
  color: rgb(59, 130, 246);
  text-decoration: none;
  word-break: break-all;
  font-size: 14px;
}

.video-link:hover {
  text-decoration: underline;
}

/* Video preview container */
.video-preview-container {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgb(30, 41, 59);
  overflow: hidden;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: none;
  background-color: #000;
}

.video-thumbnail-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.video-thumbnail-large {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgb(30, 41, 59);
}

.battle-players {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 8px;
}

.battle-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.battle-player-avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgb(30, 41, 59);
  overflow: hidden;
  background-color: rgb(51, 65, 85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.battle-player-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.battle-player-avatar-placeholder {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}

.battle-player-name {
  font-size: 12px;
  color: rgb(148, 163, 184);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.battle-player-value {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(203, 213, 225);
}

.badge-type-news {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-type-caption {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-type-video {
  background-color: rgba(236, 72, 153, 0.2);
}

.badge-type-battle {
  background-color: rgba(239, 68, 68, 0.2);
}

.badge-type-roast {
  background-color: rgba(245, 158, 11, 0.2);
}

.badge-active {
  background-color: rgba(34, 197, 94, 0.2);
}

.badge-draft {
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid rgb(51, 65, 85);
}

.badge-completed {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-voting {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-scheduled {
  background-color: rgba(245, 158, 11, 0.2);
}

/* Action buttons */
.details-action-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.details-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.details-action-btn-edit {
  background-color: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: rgb(147, 197, 253);
}

.details-action-btn-edit:hover:not(:disabled) {
  background-color: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
  color: rgb(191, 219, 254);
  transform: translateY(-1px);
}

.details-action-btn-edit:active:not(:disabled) {
  transform: translateY(0);
}

.details-action-btn-delete {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: rgb(252, 165, 165);
}

.details-action-btn-delete:hover:not(:disabled) {
  background-color: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: rgb(254, 202, 202);
  transform: translateY(-1px);
}

.details-action-btn-delete:active:not(:disabled) {
  transform: translateY(0);
}

.contest-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 8px;
  overflow-y: auto;
}

.entries-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgb(30, 41, 59);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-button {
  background: none;
  border: none;
  color: rgb(148, 163, 184);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.close-button:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.back-button {
  font-size: 14px;
  padding: 6px 12px;
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid rgb(51, 65, 85);
  color: rgb(203, 213, 225);
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.back-button:hover {
  background-color: rgb(51, 65, 85);
  color: #ffffff;
}

.contest-details-wrapper {
  flex: 1;
  overflow-y: auto;
}

.info-button {
  font-size: 14px;
  padding: 8px 16px;
  background-color: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: rgb(147, 197, 253);
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 100;
  position: relative;
}

.info-button:hover {
  background-color: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.7);
  color: rgb(191, 219, 254);
  transform: translateY(-1px);
}

.info-button:active {
  transform: translateY(0);
}

.entries-title-section {
  padding: 24px;
  border-bottom: 1px solid rgb(30, 41, 59);
}

.entries-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  word-break: break-word;
}

.entries-subtitle {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.entries-count {
  font-size: 14px;
  color: rgb(148, 163, 184);
  margin-left: auto;
}

.entries-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loading-container {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.empty-container {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: rgb(148, 163, 184);
}

.empty-subtitle {
  font-size: 14px;
  color: rgb(100, 116, 139);
}

.entries-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry-card {
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-card.entry-winner {
  border-color: rgba(245, 158, 11, 0.5);
  background-color: rgba(245, 158, 11, 0.05);
}

.entry-card.entry-hidden {
  opacity: 0.6;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.entry-author {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.entry-author-clickable {
  cursor: pointer;
  padding: 4px;
  margin: -4px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.entry-author-clickable:hover {
  background-color: rgba(51, 65, 85, 0.3);
}

.entry-author-clickable:active {
  background-color: rgba(51, 65, 85, 0.5);
}

.entry-avatar-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: rgb(51, 65, 85);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-avatar-placeholder {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.entry-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.entry-author-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.entry-date {
  font-size: 12px;
  color: rgb(148, 163, 184);
}

.entry-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.entry-content {
  margin-top: 4px;
}

.entry-text {
  font-size: 14px;
  color: rgb(203, 213, 225);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.entry-media {
  margin-top: 8px;
}

.entry-image {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid rgb(30, 41, 59);
}

.entry-video-link {
  color: rgb(59, 130, 246);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.entry-video-link:hover {
  text-decoration: underline;
}

.entry-stats {
  display: flex;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgb(30, 41, 59);
}

.entry-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-icon {
  font-size: 16px;
}

.stat-value {
  font-size: 14px;
  color: rgb(203, 213, 225);
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(203, 213, 225);
}

.badge-type-news {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-type-caption {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-type-video {
  background-color: rgba(236, 72, 153, 0.2);
}

.badge-type-battle {
  background-color: rgba(239, 68, 68, 0.2);
}

.badge-type-roast {
  background-color: rgba(245, 158, 11, 0.2);
}

.badge-active {
  background-color: rgba(34, 197, 94, 0.2);
}

.badge-draft {
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid rgb(51, 65, 85);
}

.badge-completed {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-voting {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-scheduled {
  background-color: rgba(245, 158, 11, 0.2);
}

.badge-winner {
  background-color: rgba(245, 158, 11, 0.3);
  color: rgb(251, 191, 36);
}

.badge-rank {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-hidden {
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid rgb(51, 65, 85);
}

.entry-delete-btn {
  font-size: 11px;
  padding: 4px 10px;
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: rgb(252, 165, 165);
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  margin-left: 4px;
}

.entry-delete-btn:hover {
  background-color: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.7);
  color: rgb(254, 202, 202);
}

.entry-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.edit-contest-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 600;
  color: rgb(148, 163, 184);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: rgb(203, 213, 225);
}

.form-value {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-hint {
  font-size: 12px;
  color: rgb(100, 116, 139);
  font-style: italic;
}

.form-input,
.form-textarea,
.form-select {
  padding: 10px 12px;
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid rgb(51, 65, 85);
  border-radius: 6px;
  color: rgb(226, 232, 240);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgb(59, 130, 246);
  background-color: rgba(30, 41, 59, 0.7);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgb(30, 41, 59);
}

.form-button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-button-cancel {
  background-color: rgba(51, 65, 85, 0.5);
  border-color: rgb(51, 65, 85);
  color: rgb(203, 213, 225);
}

.form-button-cancel:hover:not(:disabled) {
  background-color: rgba(51, 65, 85, 0.7);
}

.form-button-save {
  background-color: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  color: rgb(147, 197, 253);
}

.form-button-save:hover:not(:disabled) {
  background-color: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(203, 213, 225);
}

.badge-type-news {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-type-caption {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-type-video {
  background-color: rgba(236, 72, 153, 0.2);
}

.badge-type-battle {
  background-color: rgba(239, 68, 68, 0.2);
}

.badge-type-roast {
  background-color: rgba(245, 158, 11, 0.2);
}

.contests-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-split-view {
  display: flex;
  gap: 24px;
}

.list-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: flex 0.3s ease;
}

.details-pane {
  flex: 0 0 450px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.page-subtitle {
  font-size: 14px;
  color: rgb(148, 163, 184);
  margin: 0;
}

.card {
  border-radius: 8px;
  border: 1px solid rgb(30, 41, 59);
  background-color: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid rgb(30, 41, 59);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.card-content {
  padding: 20px;
}

.filter-select {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgb(51, 65, 85);
  border-radius: 8px;
  font-size: 14px;
  background-color: rgb(30, 41, 59);
  color: #ffffff;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: rgb(148, 163, 184);
}

.filter-select option {
  background-color: rgb(30, 41, 59);
  color: #ffffff;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(203, 213, 225);
  text-transform: capitalize;
}

.badge-type-news {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-type-caption {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-type-video {
  background-color: rgba(236, 72, 153, 0.2);
}

.badge-type-battle {
  background-color: rgba(239, 68, 68, 0.2);
}

.badge-type-roast {
  background-color: rgba(245, 158, 11, 0.2);
}

.badge-active {
  background-color: rgba(34, 197, 94, 0.2);
}

.badge-draft {
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid rgb(51, 65, 85);
}

.badge-completed {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-voting {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-scheduled {
  background-color: rgba(245, 158, 11, 0.2);
}

.loading-container {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.empty-container {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: rgb(148, 163, 184);
}

.empty-subtitle {
  font-size: 14px;
  color: rgb(100, 116, 139);
}

/* Contest thumbnail in table */
.contest-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contest-thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgb(51, 65, 85);
  flex-shrink: 0;
}

/* Video thumbnail container with play icon */
.video-thumbnail-container {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.video-thumbnail-container .contest-thumbnail {
  width: 100%;
  height: 100%;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(30, 41, 59);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgb(30, 41, 59);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.modal-close-button {
  background: none;
  border: none;
  color: rgb(148, 163, 184);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-button:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}
.battles-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.page-subtitle {
  font-size: 14px;
  color: rgb(148, 163, 184);
  margin: 0;
}

.content-split-view {
  display: flex;
  gap: 24px;
}

.list-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: flex 0.3s ease;
}

.details-pane {
  flex: 0 0 450px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  overflow: hidden;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card {
  border-radius: 8px;
  border: 1px solid rgb(30, 41, 59);
  background-color: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.card-header {
  padding: 20px;
  border-bottom: 1px solid rgb(30, 41, 59);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.card-content {
  padding: 20px;
}

/* Battle participants cell */
.battle-participants-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-avatars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.participant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgb(51, 65, 85);
}

.participant-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.vs-text {
  font-size: 11px;
  font-weight: 600;
  color: rgb(100, 116, 139);
  text-transform: uppercase;
}

.participant-names {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.participant-name {
  font-weight: 500;
  color: rgb(203, 213, 225);
}

.vs-divider {
  color: rgb(100, 116, 139);
  font-weight: 500;
}

/* Battle stats cell */
.battle-stats-cell {
  display: flex;
  gap: 12px;
}

.stat-item {
  font-size: 13px;
  color: rgb(148, 163, 184);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(203, 213, 225);
  text-transform: capitalize;
}

.badge-type-chat {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-type-topic {
  background-color: rgba(236, 72, 153, 0.2);
}

.badge-pending {
  background-color: rgba(245, 158, 11, 0.2);
}

.badge-active {
  background-color: rgba(34, 197, 94, 0.2);
}

.badge-voting {
  background-color: rgba(139, 92, 246, 0.2);
}

.badge-completed {
  background-color: rgba(59, 130, 246, 0.2);
}

.badge-cancelled {
  background-color: rgba(239, 68, 68, 0.2);
}

.badge-visibility-private {
  background-color: rgba(51, 65, 85, 0.5);
  border: 1px solid rgb(51, 65, 85);
}

.badge-visibility-public {
  background-color: rgba(34, 197, 94, 0.2);
}

/* Filter select */
.filter-select {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid rgb(51, 65, 85);
  border-radius: 8px;
  font-size: 14px;
  background-color: rgb(30, 41, 59);
  color: #ffffff;
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: rgb(148, 163, 184);
}

.filter-select option {
  background-color: rgb(30, 41, 59);
  color: #ffffff;
}

/* Loading and empty states */
.loading-container {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text {
  font-size: 14px;
  color: rgb(148, 163, 184);
}

.empty-container {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.empty-container.small {
  padding: 24px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: rgb(148, 163, 184);
}

.empty-subtitle {
  font-size: 14px;
  color: rgb(100, 116, 139);
}

.cell-text {
  font-size: 14px;
  color: rgb(203, 213, 225);
}

/* Table overrides to ensure dark theme */
.battles-page .table-wrapper {
  border: 1px solid rgb(30, 41, 59);
  background-color: rgba(15, 23, 42, 0.3);
}

.battles-page .table-header {
  color: rgb(148, 163, 184);
  border-bottom: 1px solid rgb(30, 41, 59);
}

.battles-page .table-cell {
  color: rgb(203, 213, 225);
  border-bottom: 1px solid rgb(30, 41, 59);
}

.battles-page .table-row:hover {
  background-color: rgba(30, 41, 59, 0.5);
}

/* Battle details panel */
.battle-details {
  border-radius: 8px;
  border: 1px solid rgb(30, 41, 59);
  background-color: rgba(15, 23, 42, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.details-header {
  padding: 20px;
  border-bottom: 1px solid rgb(30, 41, 59);
  background-color: rgba(30, 41, 59, 0.3);
}

.details-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.details-type-container {
  display: flex;
  gap: 8px;
}

.details-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.details-action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.details-action-btn-delete {
  background-color: rgba(239, 68, 68, 0.2);
  color: rgb(239, 68, 68);
}

.details-action-btn-delete:hover {
  background-color: rgba(239, 68, 68, 0.3);
}

.close-button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background-color: rgb(30, 41, 59);
  color: rgb(148, 163, 184);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-button:hover {
  background-color: rgb(51, 65, 85);
  color: #ffffff;
}

.details-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.battle-participants-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
}

.battle-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.battle-player-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgb(51, 65, 85);
}

.battle-player-avatar-large-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  border: 3px solid rgb(51, 65, 85);
}

.battle-player-info {
  text-align: center;
}

.battle-player-name-large {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.battle-player-username {
  font-size: 13px;
  color: rgb(148, 163, 184);
}

.battle-player-stars {
  font-size: 13px;
  color: rgb(245, 158, 11);
  margin-top: 4px;
}

.battle-vs {
  font-size: 20px;
  font-weight: 700;
  color: rgb(100, 116, 139);
}

.details-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.details-section {
  margin-bottom: 24px;
}

.details-section-title {
  font-size: 14px;
  font-weight: 600;
  color: rgb(148, 163, 184);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  color: rgb(100, 116, 139);
}

.detail-value {
  font-size: 14px;
  color: rgb(203, 213, 225);
  font-weight: 500;
}

/* Battle topics */
.battle-topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.battle-topic-item {
  display: flex;
  gap: 8px;
  padding: 12px;
  background-color: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  font-size: 14px;
}

.topic-number {
  font-weight: 600;
  color: rgb(100, 116, 139);
  min-width: 20px;
}

.topic-text {
  color: rgb(203, 213, 225);
}

/* Battle messages */
.battle-messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.battle-message {
  padding: 12px;
  border-radius: 12px;
  max-width: 85%;
}

.message-left {
  background-color: rgba(30, 41, 59, 0.8);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message-right {
  background-color: rgba(59, 130, 246, 0.2);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.message-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgb(51, 65, 85);
}

.message-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.message-author {
  font-size: 13px;
  font-weight: 500;
  color: rgb(203, 213, 225);
}

.message-votes {
  font-size: 12px;
  color: rgb(100, 116, 139);
  margin-left: auto;
}

.message-content {
  font-size: 14px;
  color: rgb(203, 213, 225);
}

.message-text {
  line-height: 1.5;
}

.message-media {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgb(51, 65, 85);
}

.message-video-link {
  color: rgb(96, 165, 250);
  text-decoration: none;
}

.message-video-link:hover {
  text-decoration: underline;
}

.message-topic-index {
  font-size: 11px;
  color: rgb(100, 116, 139);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.create-contest-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.contest-type-selector {
  display: flex;
  background-color: rgb(15, 23, 42);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgb(30, 41, 59);
  gap: 4px;
}

.type-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: rgb(148, 163, 184);
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.type-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.type-tab.active {
  color: #ffffff;
  background-color: rgb(59, 130, 246);
}

.contest-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group label {
  color: rgb(203, 213, 225);
  font-size: 14px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
  background-color: rgb(15, 23, 42);
  border: 1px solid rgb(51, 65, 85);
  border-radius: 6px;
  padding: 12px;
  color: #ffffff;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgb(59, 130, 246);
}

.image-upload-area {
  border: 2px dashed rgb(51, 65, 85);
  border-radius: 8px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.image-upload-area:hover {
  border-color: rgb(59, 130, 246);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgb(148, 163, 184);
}

.upload-icon {
  font-size: 32px;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.radio-group {
  display: flex;
  gap: 24px;
  padding: 8px 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
}

.info-text {
  font-size: 13px;
  color: rgb(148, 163, 184);
  font-style: italic;
  margin: 0;
}

.message {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}

.message.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: rgb(248, 113, 113);
}

.message.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: rgb(74, 222, 128);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgb(30, 41, 59);
}

.submit-button {
  background-color: rgb(59, 130, 246);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-button:hover:not(:disabled) {
  background-color: rgb(37, 99, 235);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contest-type-selector {
    flex-wrap: wrap;
  }
  
  .type-tab {
    flex: 1 0 45%;
  }
}

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

.login-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-title {
  margin: 0 0 1.5rem 0;
  text-align: center;
  color: #333;
  font-size: 1.5rem;
}

.login-field {
  margin-bottom: 1rem;
}

.login-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}

.login-field input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.login-field input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.login-error {
  background-color: #fee;
  color: #c33;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.login-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #667eea;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-button:hover:not(:disabled) {
  background-color: #5568d3;
}

.login-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.app-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  background-color: rgb(2, 6, 23);
}

.main-content {
  flex: 1;
  overflow: auto;
  background-color: rgb(2, 6, 23);
}

.content-wrapper {
  padding: 32px;
}

.placeholder-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  gap: 16px;
}

.placeholder-icon {
  font-size: 64px;
}

.placeholder-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.placeholder-text {
  font-size: 16px;
  color: rgb(148, 163, 184);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: rgb(2, 6, 23);
  color: #ffffff;
}

#root {
  width: 100%;
  height: 100vh;
}

