/* Dashboard Styles - Inspired by Legora & Flashbooks */

/* Dashboard Container */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  background: #F8FAFC;
  min-height: calc(100vh - 52px);
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-left {
  flex: 1;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 2rem;
  font-weight: 700 !important;
  color: #1a1a2e;
  margin: 0 !important;
}

.page-subtitle {
  color: #64748b;
  margin: 4px 0 0;
  font-size: 0.95rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #10B981;
  color: white !important;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
  color: white !important;
  text-decoration: none;
}

.btn-primary svg {
  stroke: white;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #E2E8F0;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: #EEF2FF;
}

.stat-icon.green {
  background: #ECFDF5;
}

.stat-icon.orange {
  background: #FFF7ED;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.stat-label {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 2px;
}

/* Table Card */
.table-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
}

.table-header h2 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
}

.table-filters {
  display: flex;
  gap: 12px;
}

.search-input {
  padding: 10px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.875rem;
  width: 250px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  background: #F8FAFC;
}

.search-input:focus {
  outline: none;
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: white;
}

.search-input::placeholder {
  color: #94A3B8;
}

/* Table */
.cases-table {
  width: 100%;
  border-collapse: collapse;
}

.cases-table thead {
  background: #F8FAFC;
}

.cases-table th {
  padding: 14px 24px;
  text-align: left;
  font-weight: 600;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
  border-bottom: 1px solid #E2E8F0;
}

.cases-table td {
  padding: 16px 24px;
  border-top: 1px solid #E2E8F0;
  color: #1a1a2e;
  font-size: 0.9rem;
}

.cases-table tbody tr {
  transition: background-color 0.2s ease;
}

.cases-table tbody tr:hover {
  background: #F8FAFC;
}

.cases-table tbody tr:first-child td {
  border-top: none;
}

/* Case Link */
.case-link {
  color: #1a1a2e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.case-link:hover {
  color: #10B981;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #ECFDF5;
  color: #059669;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.completed {
  background: #EEF2FF;
  color: #4F46E5;
}

.status-badge.pending {
  background: #FFF7ED;
  color: #EA580C;
}

/* Action Buttons */
.actions-cell {
  display: flex;
  gap: 8px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-action.view {
  background: #EEF2FF;
  color: #4F46E5;
}

.btn-action.view:hover {
  background: #4F46E5;
  color: white;
}

.btn-action.view svg {
  stroke: #4F46E5;
}

.btn-action.view:hover svg {
  stroke: white;
}

.btn-action.edit {
  background: #FFF7ED;
  color: #EA580C;
}

.btn-action.edit:hover {
  background: #EA580C;
  color: white;
}

.btn-action.edit svg {
  stroke: #EA580C;
}

.btn-action.edit:hover svg {
  stroke: white;
}

.btn-action.delete {
  background: #FEF2F2;
  color: #DC2626;
}

.btn-action.delete:hover {
  background: #DC2626;
  color: white;
}

.btn-action.delete svg {
  stroke: #DC2626;
}

.btn-action.delete:hover svg {
  stroke: white;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px !important;
  background: #FAFAFA;
}

.empty-content {
  color: #64748b;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.8;
}

.empty-content p {
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.empty-content span {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 24px 16px;
  }

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

  .header-right {
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .search-input {
    width: 100%;
  }

  .cases-table th,
  .cases-table td {
    padding: 12px 16px;
  }

  .actions-cell {
    flex-wrap: wrap;
  }
}

/* Override Bulma table styles */
.cases-table.table {
  background-color: transparent;
}

.cases-table.table thead th {
  background: #F8FAFC;
  border-width: 0 0 1px;
}

.cases-table.table td {
  border-width: 1px 0 0;
}
