/**
 * Admin Review Styles
 * Modern, professional design for admin review interface
 */

/* ============================================================================
   ADMIN REVIEW CONTAINER
   ============================================================================ */

.admin-review-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px;
  background: #F9FAFB;
  min-height: 100vh;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.admin-review-header {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.header-left {
  flex: 1;
}

.admin-review-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.admin-review-subtitle {
  font-size: 16px;
  color: #6B7280;
  margin: 0;
}

.header-right {
  display: flex;
  gap: 12px;
}

/* ============================================================================
   OVERVIEW STATS
   ============================================================================ */

.admin-review-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Colored top border using ::before */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
  height: 6px;
}

/* Stat Card Color Variants - Pending (Purple) */
.stat-card.stat-pending::before {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
}

.stat-card.stat-pending {
  border-color: rgba(99, 102, 241, 0.1);
}

.stat-card.stat-pending:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(129, 140, 248, 0.03) 100%);
}

/* Stat Card Color Variants - Approved (Green) */
.stat-card.stat-approved::before {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.stat-card.stat-approved {
  border-color: rgba(16, 185, 129, 0.1);
}

.stat-card.stat-approved:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(52, 211, 153, 0.03) 100%);
}

/* Stat Card Color Variants - Attention (Amber) */
.stat-card.stat-attention::before {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.stat-card.stat-attention {
  border-color: rgba(245, 158, 11, 0.1);
}

.stat-card.stat-attention:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(251, 191, 36, 0.03) 100%);
}

/* Stat Card Color Variants - Regenerated (Red) */
.stat-card.stat-regenerated::before {
  background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
}

.stat-card.stat-regenerated {
  border-color: rgba(239, 68, 68, 0.1);
}

.stat-card.stat-regenerated:hover {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(248, 113, 113, 0.03) 100%);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Gradient Icon Styles - matching Policy Management */
.stat-icon.icon-pending {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
  color: white;
}

.stat-icon.icon-approved {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  color: white;
}

.stat-icon.icon-attention {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: white;
}

.stat-icon.icon-regenerated {
  background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
  color: white;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
}

/* ============================================================================
   SECTION TITLES
   ============================================================================ */

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 24px 0;
}

.section-title svg {
  width: 24px;
  height: 24px;
  color: #6366F1;
}

.review-types-section {
  margin-bottom: 48px;
}

/* ============================================================================
   REVIEW TYPE CARDS
   ============================================================================ */

.review-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.review-type-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Colored top border for review type cards */
.review-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: height 0.3s ease;
}

.review-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.review-type-card:hover::before {
  height: 6px;
}

/* Review Type Card Color Variants */
.review-type-card.card-indigo::before {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
}

.review-type-card.card-indigo {
  border-color: rgba(99, 102, 241, 0.1);
}

.review-type-card.card-indigo:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(129, 140, 248, 0.03) 100%);
}

.review-type-card.card-emerald::before {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}

.review-type-card.card-emerald {
  border-color: rgba(16, 185, 129, 0.1);
}

.review-type-card.card-emerald:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(52, 211, 153, 0.03) 100%);
}

.review-type-card.card-amber::before {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.review-type-card.card-amber {
  border-color: rgba(245, 158, 11, 0.1);
}

.review-type-card.card-amber:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(251, 191, 36, 0.03) 100%);
}

.review-type-card.card-violet::before {
  background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
}

.review-type-card.card-violet {
  border-color: rgba(139, 92, 246, 0.1);
}

.review-type-card.card-violet:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(167, 139, 250, 0.03) 100%);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Gradient styles for Review Type cards */
.card-icon.gradient-indigo {
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 100%);
  color: white;
}

.card-icon.gradient-emerald {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  color: white;
}

.card-icon.gradient-amber {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  color: white;
}

.card-icon.gradient-violet {
  background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
  color: white;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-badge {
  background: #EF4444;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  min-width: 28px;
  text-align: center;
}

.card-body {
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.stat-text {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
}

.card-footer {
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}

.btn-link {
  background: none;
  border: none;
  color: #6366F1;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.btn-link:hover {
  color: #4F46E5;
}

.btn-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================================================
   RECENT ACTIVITY
   ============================================================================ */

.recent-activity-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #F9FAFB;
  transition: background 0.2s;
}

.activity-item:hover {
  background: #F3F4F6;
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 24px;
  height: 24px;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: 14px;
  color: #111827;
  margin-bottom: 4px;
}

.activity-text strong {
  font-weight: 600;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6B7280;
}

.activity-type {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  color: #6366F1;
}

.activity-separator {
  color: #D1D5DB;
}

.activity-time {
  color: #9CA3AF;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-secondary {
  background: #F3F4F6;
  color: #374151;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #E5E7EB;
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

.btn-ghost {
  background: transparent;
  color: #6366F1;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: #EEF2FF;
  border-color: #C7D2FE;
}

.btn-ghost svg {
  width: 16px;
  height: 16px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* ============================================================================
   EMPTY STATES
   ============================================================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #9CA3AF;
}

.empty-state svg {
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
}

.error-state {
  text-align: center;
  padding: 24px;
  color: #EF4444;
  font-size: 14px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
  .admin-review-container {
    padding: 24px;
  }
  
  .admin-review-header {
    padding: 24px;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-review-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .review-types-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-review-container {
    padding: 16px;
  }
  
  .admin-review-header {
    padding: 20px;
  }
  
  .admin-review-title {
    font-size: 24px;
  }
  
  .admin-review-stats {
    grid-template-columns: 1fr;
  }
  
  .review-types-grid {
    grid-template-columns: 1fr;
  }
  
  .activity-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .card-stat {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .stat-number {
    font-size: 20px;
  }
}
