/**
 * Inspace Account Module - Enterprise Design System
 * Version 1.0 - Mobile-First, Premium UI/UX
 * December 2025
 */

:root {
  /* Primary Colors */
  --account-primary: #6366f1;
  --account-secondary: #8b5cf6;
  --account-accent: #a855f7;

  /* Gradients */
  --account-gradient: linear-gradient(
    135deg,
    var(--account-primary) 0%,
    var(--account-secondary) 100%
  );
  --account-gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --account-gradient-subtle: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );

  /* Status Colors */
  --account-success: #22c55e;
  --account-warning: #f59e0b;
  --account-danger: #ef4444;
  --account-info: #3b82f6;

  /* Neutrals */
  --account-gray-50: #f8fafc;
  --account-gray-100: #f1f5f9;
  --account-gray-200: #e2e8f0;
  --account-gray-300: #cbd5e1;
  --account-gray-500: #64748b;
  --account-gray-700: #334155;
  --account-gray-800: #1e293b;
  --account-gray-900: #0f172a;

  /* Spacing */
  --account-space-1: 0.25rem;
  --account-space-2: 0.5rem;
  --account-space-3: 0.75rem;
  --account-space-4: 1rem;
  --account-space-6: 1.5rem;
  --account-space-8: 2rem;
  --account-space-12: 3rem;

  /* Radius */
  --account-radius-sm: 8px;
  --account-radius-md: 12px;
  --account-radius-lg: 16px;
  --account-radius-xl: 20px;
  --account-radius-full: 9999px;

  /* Shadows */
  --account-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --account-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --account-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --account-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Enterprise Card Component */
.enterprise-account-card {
  background: white;
  border-radius: var(--account-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--account-gray-200);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  /* Remove animation dependency - cards should be visible by default */
  opacity: 1;
}

/* Optional: Add animation class for JavaScript-triggered entrance */
.enterprise-account-card.animate-in {
  animation: slideInCard 0.5s ease forwards;
  opacity: 0;
}

.enterprise-account-card.animate-in:nth-child(1) {
  animation-delay: 0.1s;
}
.enterprise-account-card.animate-in:nth-child(2) {
  animation-delay: 0.2s;
}
.enterprise-account-card.animate-in:nth-child(3) {
  animation-delay: 0.3s;
}
.enterprise-account-card.animate-in:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInCard {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enterprise-account-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.enterprise-account-card-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.enterprise-account-card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 10% 30%,
    rgba(99, 102, 241, 0.2) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.enterprise-account-card-header-content {
  position: relative;
  z-index: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--account-radius-md);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(139, 92, 246, 0.2) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #a78bfa;
}

.card-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.card-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
  margin-top: 0.25rem;
}

.enterprise-account-card-body {
  padding: 2rem;
}

.enterprise-account-card-footer {
  padding: 1.5rem 2rem;
  background: var(--account-gray-50);
  border-top: 1px solid var(--account-gray-200);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Stat Cards */
.stat-card {
  background: white;
  border-radius: var(--account-radius-md);
  padding: 1.5rem;
  border: 1px solid var(--account-gray-200);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--account-primary);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--account-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card-icon-primary {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(99, 102, 241, 0.2)
  );
  color: var(--account-primary);
}

.stat-card-icon-success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1),
    rgba(34, 197, 94, 0.2)
  );
  color: var(--account-success);
}

.stat-card-icon-warning {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(245, 158, 11, 0.2)
  );
  color: var(--account-warning);
}

.stat-card-icon-info {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(59, 130, 246, 0.2)
  );
  color: var(--account-info);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--account-gray-900);
  line-height: 1;
  font-family: "IBM Plex Mono", monospace;
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--account-gray-500);
  font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .enterprise-account-card-body {
    padding: 1.5rem;
  }

  .enterprise-account-card-footer {
    padding: 1rem 1.5rem;
    flex-direction: column-reverse;
  }

  .enterprise-account-card-footer .btn {
    width: 100%;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-card-value {
    font-size: 1.75rem;
  }
}
