/**
 * Redirects Manager Page Styles
 */

/* Page Container */
.prorank-redirects-manager-page {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Page Header */
.prorank-page-header {
  margin-bottom: 32px;
}

.prorank-page-header h1 {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--pr-gray-900, #18181b) !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.025em;
}

.prorank-page-header p {
  font-size: 16px;
  color: var(--pr-gray-600, #52525b);
  margin: 0;
}

/* Filters Card */
.prorank-redirects-filters {
  margin-bottom: 24px;
  border: 1px solid var(--pr-gray-200, #e4e4e7);
  border-radius: 12px;
}

/* Table Card */
.prorank-redirects-table-card {
  border: 1px solid var(--pr-gray-200, #e4e4e7);
  border-radius: 12px;
}

/* Loading State */
.prorank-redirects-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 16px;
}

/* Empty State */
.prorank-redirects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 24px;
  text-align: center;
}

/* Table Styles */
.prorank-redirects-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.prorank-redirects-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--pr-gray-700, #3f3f46);
  border-bottom: 2px solid var(--pr-gray-200, #e4e4e7);
  white-space: nowrap;
}

.prorank-redirects-table td {
  padding: 16px;
  border-bottom: 1px solid var(--pr-gray-100, #f4f4f5);
}

.prorank-redirects-table tbody tr:hover {
  background: var(--pr-gray-50, #fafafa);
}

.prorank-check-column {
  width: 40px;
}

.prorank-check-column .components-checkbox-control__input-container {
  margin: 0;
}

/* Code Styling */
.prorank-redirects-table code {
  font-family: var(--pr-font-mono, monospace);
  font-size: 13px;
  background: var(--pr-gray-100, #f4f4f5);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-word;
}

/* Status Badge */
.prorank-status-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
}

.prorank-status-active {
  background: rgb(16 185 129 / 10%);
  color: var(--pr-accent-green, #10b981);
}

.prorank-status-inactive {
  background: var(--pr-gray-200, #e4e4e7);
  color: var(--pr-gray-600, #52525b);
}

/* Regex Badge */
.prorank-regex-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgb(139 92 246 / 10%);
  color: var(--pr-accent-purple, #3b82f6);
  border-radius: 4px;
}

/* Locked Column */
.prorank-locked-column {
  opacity: 0.5;
  position: relative;
}

/* Pagination */
.prorank-redirects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--pr-gray-200, #e4e4e7);
}

/* 404 Monitor Card */
.prorank-404-monitor-card {
  margin-top: 24px;
  border: 2px solid rgb(139 92 246 / 20%);
  border-radius: 12px;
  background: rgb(139 92 246 / 5%);
}

.prorank-404-monitor-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--pr-gray-900, #18181b);
}

.prorank-404-monitor-card p {
  margin: 0;
  color: var(--pr-gray-600, #52525b);
}


/* Responsive */
@media (width <= 1024px) {
  .prorank-redirects-table {
    font-size: 14px;
  }

  .prorank-redirects-table th,
  .prorank-redirects-table td {
    padding: 12px;
  }
}

@media (width <= 768px) {
  .prorank-redirects-filters .components-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .prorank-redirects-table-card {
    overflow-x: auto;
  }

  .prorank-redirects-table {
    min-width: 700px;
  }
}
