/* saas_platform/public/styles.css - Premium Modern Light Theme (Clean White Aesthetic) */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;
  --border-focus: #6366f1;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-subtle: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.2);
  --accent-cyan: #0284c7;
  --accent-green: #10b981;
  --accent-green-subtle: #ecfdf5;
  --accent-amber: #d97706;
  --accent-red: #ef4444;
  --accent-red-subtle: #fef2f2;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Gradients */
.bg-glow {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--primary-glow);
  color: #fff;
}

.logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main);
}

.logo-badge {
  background: #eef2ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12.5px;
}

/* Hero Section */
.hero {
  padding: 70px 0 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2ff;
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.hero-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 34px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

/* Stats Counter Grid */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 60px;
}

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

.stat-number {
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Feature Cards Grid */
.section-title-wrap {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary);
  background: #eef2ff;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 8px auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eef2ff;
  border: 1px solid rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.plan-price {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--primary);
}

.plan-price span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 500;
}

.plan-features li.disabled {
  color: #94a3b8;
  text-decoration: line-through;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-img-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0e7ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.user-name-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.user-university {
  font-size: 11px;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.faq-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  background: #ffffff;
}

/* Dashboard Layout (Light Theme) */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f8fafc;
}

.sidebar {
  background: #ffffff;
  border-left: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 0 8px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s;
}

.sidebar-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.sidebar-link.active {
  background: #eef2ff;
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.user-profile-widget {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.main-view {
  padding: 32px;
  overflow-y: auto;
}

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

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.dash-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  border: 1px solid rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* License Key Box */
.license-box {
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.license-key-code {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--primary);
  letter-spacing: 1px;
}

/* Table */
.data-table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: right;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.data-table td {
  padding: 14px 12px;
  font-size: 13.5px;
  border-bottom: 1px solid #f1f5f9;
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* Status Indicator Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .dash-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 34px;
  }
}
