/* ==================== ADMIN TABLE ==================== */

.admin-table {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: auto;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

/* Table Header */
thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
  border-bottom: 2px solid #dee2e6;
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: #20232a;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table Body */
td {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  color: #333;
  vertical-align: middle;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background: #f8f9fa;
}

/* Table Data - Specific */
td strong {
  color: #20232a;
  font-weight: 700;
}

td code {
  background: #f5f5f5;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  color: #d63384;
}

td a {
  color: #007acc;
  text-decoration: none;
  word-break: break-all;
  font-weight: 500;
  transition: all 0.3s ease;
}

td a:hover {
  color: #005a9e;
  text-decoration: underline;
}

/* Video Title */
.video-title {
  color: #007acc;
  font-weight: 700;
}

/* Description Cell */
.description-cell {
  color: #666;
  font-size: 0.9rem;
}

/* Source Badge */
.source-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.source-url {
  background: #cce5ff;
  color: #0066cc;
}

.source-uploaded {
  background: #d4edda;
  color: #155724;
}

.source-none {
  background: #f0f0f0;
  color: #666;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #e7f3ff;
  color: #0066cc;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.category-badge.gray {
  background: #f0f0f0;
  color: #666;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-buttons .btn {
  margin: 0;
  white-space: nowrap;
}

.action-buttons form {
  display: inline;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
  th,
  td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  th {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .admin-table {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.6rem 0.4rem;
    font-size: 0.85rem;
  }

  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }

  .action-buttons .btn {
    width: 100%;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    justify-content: center;
  }

  .action-buttons .btn .icon {
    display: none;
  }

  .description-cell {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
