/* Parties Page - Professional Light Theme */
/* All styles scoped to .parties-page to avoid affecting other pages */

.parties-page {
  min-height: 100vh;
  background: #F8FAFC;
  padding: 24px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Breadcrumb */
.parties-page .page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.parties-page .page-breadcrumb a {
  color: #6366F1;
  text-decoration: none;
  font-weight: 500;
}

.parties-page .page-breadcrumb a:hover {
  text-decoration: underline;
}

.parties-page .page-breadcrumb .separator {
  color: #9CA3AF;
}

.parties-page .page-breadcrumb .current {
  color: #6B7280;
}

/* Page Layout */
.parties-page .page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar */
.parties-page .page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Case Info Card */
.parties-page .case-info-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.parties-page .case-file-number {
  display: block;
  font-size: 0.75rem;
  color: #6B7280;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.parties-page .case-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.3;
}

/* Sidebar Navigation */
.parties-page .sidebar-nav {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.parties-page .nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  padding: 0 12px;
}

.parties-page .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #374151;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}

.parties-page .nav-link:hover {
  background: #F1F5F9;
  color: #1a1a2e;
}

.parties-page .nav-link.active {
  background: #EEF2FF;
  color: #6366F1;
}

.parties-page .nav-link.active .nav-icon {
  color: #6366F1;
}

.parties-page .nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #6B7280;
}

.parties-page .nav-link:hover .nav-icon {
  color: #374151;
}

/* Main Content */
.parties-page .page-main {
  min-width: 0;
}

.parties-page .content-card {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Content Header */
.parties-page .content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #E5E7EB;
}

.parties-page .header-left h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
}

.parties-page .header-subtitle {
  color: #6B7280;
  font-size: 0.875rem;
  margin: 0;
}

.parties-page .btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.parties-page .btn-add svg {
  width: 18px;
  height: 18px;
}

.parties-page .btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  color: white;
}

/* Table Container */
.parties-page .table-container {
  padding: 0;
}

/* Data Table */
.parties-page .data-table {
  width: 100%;
  border-collapse: collapse;
}

.parties-page .data-table thead {
  background: #F8FAFC;
}

.parties-page .data-table th {
  padding: 14px 24px;
  text-align: left;
  font-weight: 600;
  color: #6B7280;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #E5E7EB;
}

.parties-page .data-table td {
  padding: 18px 24px;
  color: #1a1a2e;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9375rem;
}

.parties-page .data-table tbody tr {
  transition: background 0.2s ease;
}

.parties-page .data-table tbody tr:hover {
  background: #F8FAFC;
}

.parties-page .data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Party Link */
.parties-page .party-link {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.parties-page .party-link:hover {
  color: #6366F1;
}

/* Role Badge */
.parties-page .role-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #EEF2FF;
  color: #6366F1;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.parties-page .role-badge.plaintiff {
  background: #DCFCE7;
  color: #166534;
}

.parties-page .role-badge.defendant {
  background: #FEE2E2;
  color: #991B1B;
}

.parties-page .role-badge.third-party {
  background: #FEF3C7;
  color: #92400E;
}

.parties-page .role-badge.other {
  background: #F3F4F6;
  color: #374151;
}

/* Secondary Text */
.parties-page .text-secondary {
  color: #6B7280;
}

/* Actions Cell */
.parties-page .actions-cell {
  text-align: right;
  white-space: nowrap;
}

.parties-page .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #9CA3AF;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.parties-page .action-btn svg {
  width: 18px;
  height: 18px;
}

.parties-page .action-btn.edit:hover {
  background: #EEF2FF;
  color: #6366F1;
}

.parties-page .action-btn.delete:hover {
  background: #FEE2E2;
  color: #EF4444;
}

/* Empty State */
.parties-page .empty-state {
  text-align: center;
  padding: 64px 24px;
}

.parties-page .empty-icon-container {
  width: 80px;
  height: 80px;
  background: #F1F5F9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.parties-page .empty-icon-container svg {
  width: 40px;
  height: 40px;
  color: #9CA3AF;
}

.parties-page .empty-state p {
  color: #6B7280;
  margin-bottom: 24px;
  font-size: 1rem;
}

.parties-page .btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.parties-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .parties-page .page-layout {
    grid-template-columns: 1fr;
  }

  .parties-page .page-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .parties-page {
    padding: 16px;
  }

  .parties-page .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .parties-page .data-table th,
  .parties-page .data-table td {
    padding: 12px 16px;
  }

  .parties-page .data-table th:nth-child(3),
  .parties-page .data-table td:nth-child(3),
  .parties-page .data-table th:nth-child(4),
  .parties-page .data-table td:nth-child(4) {
    display: none;
  }
}
