/* Business Page Styles */
.business-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 70px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.page-title h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-dark, #1f2937);
}

.page-title p {
  margin: 0;
  color: var(--text-muted, #6b7280);
}

.page-actions {
  display: flex;
  gap: 1rem;
}

/* Stats Cards */
.business-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color, #e5e7eb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.stat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.5rem;
}

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

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark, #1f2937);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  margin-top: 0.25rem;
}

/* Business Modules */
.business-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.module-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color, #e5e7eb);
  text-decoration: none;
  color: var(--text-color, #374151);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--module-color, #2563eb);
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--module-color, #2563eb);
  color: white;
  border-radius: 0.5rem;
}

.module-stat {
  text-align: right;
}

.stat-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--module-color, #2563eb);
}

.stat-text {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted, #6b7280);
  margin-top: 0.25rem;
}

.module-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--text-dark, #1f2937);
}

.module-card p {
  margin: 0 0 1rem 0;
  color: var(--text-muted, #6b7280);
  flex-grow: 1;
}

.module-link {
  color: var(--module-color, #2563eb);
  font-weight: 600;
}

/* Quick Actions Section */
.quick-actions-section {
  margin-bottom: 3rem;
}

.quick-actions-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: var(--text-dark, #1f2937);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text-color, #374151);
  transition: all 0.2s ease;
}

.quick-action:hover {
  background: var(--hover-bg, #f3f4f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Recent Activity */
.recent-activity {
  background: var(--bg-light, #f9fafb);
  padding: 2rem;
  border-radius: 0.75rem;
  margin-bottom: 3rem;
}

.recent-activity h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: var(--text-dark, #1f2937);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color, #e5e7eb);
}

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

.activity-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.activity-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.activity-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.activity-content {
  flex-grow: 1;
}

.activity-content p {
  margin: 0 0 0.25rem 0;
  color: var(--text-dark, #1f2937);
}

.activity-time {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
}

.activity-amount {
  font-weight: 700;
  color: #10b981;
}

.activity-amount.overdue {
  color: #ef4444;
}

/* Performance Section */
.performance-section {
  margin-bottom: 3rem;
}

.performance-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: var(--text-dark, #1f2937);
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.performance-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color, #e5e7eb);
  padding: 1.5rem;
}

.performance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.performance-header h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-dark, #1f2937);
}

.trend {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.trend.positive {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.trend.negative {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.mini-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-light, #f9fafb);
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.chart-placeholder {
  opacity: 0.3;
}

.performance-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1rem;
  color: white;
}

.cta-section h2 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
}

.cta-section p {
  font-size: 1.125rem;
  margin: 0 0 2rem 0;
  opacity: 0.9;
}

.cta-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Section Placeholder */
.section-placeholder {
  padding: 3rem;
  text-align: center;
  background: var(--bg-light, #f9fafb);
  border-radius: 0.75rem;
  margin-top: 70px;
}

.section-placeholder h2 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: var(--text-dark, #1f2937);
}

.section-placeholder p {
  margin: 0 0 2rem 0;
  color: var(--text-muted, #6b7280);
}

/* Buttons */
.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-color, #2563eb);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark, #1d4ed8);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color, #374151);
  border: 1px solid var(--border-color, #e5e7eb);
}

.btn-secondary:hover {
  background: var(--hover-bg, #f3f4f6);
}

/* Responsive */
@media (max-width: 768px) {
  .business-page {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .business-modules {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-features {
    grid-template-columns: 1fr;
  }
}