/* 
========================================
   Hiventis Landing Page - Main Styles
========================================
*/

:root {
  /* Colors */
  --color-primary: #5835E5;      /* Main purple */
  --color-primary-dark: #3F1BB8; 
  --color-primary-light: #7B5CFF;
  --color-secondary: #24A2FF;    /* Blue for gradients */
  --color-dark: #1A103C;         /* Dark section bg */
  --color-dark-text: #0E052B;    
  
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  
  /* Text */
  --color-text-main: #1E293B;
  --color-text-muted: #64748B;
  
  /* Feature Card Icon Backgrounds */
  --color-feat-purple: #EFE9FF;
  --color-feat-blue: #E0F2FE;
  --color-feat-green: #D1FAE5;
  --color-feat-orange: #FFEDD5;
  --color-feat-pink: #FCE7F3;
  --color-feat-indigo: #E0E7FF;
  --color-feat-teal: #CCFBF1;
  
  /* Feature Card Icon Colors */
  --icon-purple: #7C3AED;
  --icon-blue: #0284C7;
  --icon-green: #059669;
  --icon-orange: #EA580C;
  --icon-pink: #DB2777;
  --icon-indigo: #4F46E5;
  --icon-teal: #0D9488;
  
  --color-border: #E2E8F0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-dark); }
.text-white { color: white !important; }

/* 
========================================
   Buttons
========================================
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(88, 53, 229, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-main);
}

.btn-ghost:hover {
  background: var(--color-bg-light);
}

.btn-outline {
  background: transparent;
  border-color: #E2DDF8;
  color: var(--color-primary);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-feat-purple);
}

.btn-link {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.btn-block {
  width: 100%;
}

/* 
========================================
   Navigation
========================================
*/
.navbar {
  height: 80px;
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-dark-text);
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a i {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

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

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

/* 
========================================
   Hero Section
========================================
*/
.hero {
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-light); /* Soft background before gradient */
}

/* Big purple background glowing sweep */
.hero-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 120%, rgba(88,53,229,0.15) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 80px;
  max-width: 1300px;
}

.hero-content {
  text-align: left;
  flex: 1;
  max-width: 500px;
  margin: 0;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  background: var(--color-feat-purple);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-dark-text);
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-platforms {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.platforms-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.platforms-icons {
  display: flex;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.platforms-icons span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mockup Layout */
.hero-mockup-wrapper {
  position: relative;
  flex: 1.5;
  max-width: 850px;
  margin-top: 0;
}

.devices {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.laptop-mockup img {
  width: 100%;
  max-width: 850px;
  display: block;
  transform: scale(1.1);
  transform-origin: right center;
}

.mobile-mockup {
  position: absolute;
  right: -20px;
  bottom: -40px;
  z-index: 5;
}

.mobile-mockup img {
  width: 180px;
  border-radius: 20px;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.15);
  display: block;
  border: 4px solid #111;
}

.floating-badge {
  position: absolute;
  background: white;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 10;
  text-align: center;
}

.floating-badge i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-ai {
  top: 30%;
  right: -40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
}
.badge-ai i { color: white; }

.badge-secure {
  bottom: -20px;
  right: -50px;
  color: var(--color-dark-text);
}
.badge-secure i { background: var(--icon-green); color: white; }


/* 
========================================
   Trusted By
========================================
*/
.trusted-by {
  padding: 60px 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
}

.trusted-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94A3B8;
  margin-bottom: 32px;
}

.trusted-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  opacity: 0.6;
  filter: grayscale(100%);
}
.trusted-logos img {
  max-height: 35px;
}

/* 
========================================
   Section Utility
========================================
*/
section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark-text);
  letter-spacing: -0.02em;
}

/* 
========================================
   Features Grid
========================================
*/
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Feature Colors */
.bg-purple { background: var(--color-feat-purple); color: var(--icon-purple); }
.bg-blue { background: var(--color-feat-blue); color: var(--icon-blue); }
.bg-green { background: var(--color-feat-green); color: var(--icon-green); }
.bg-blue-dark { background: var(--color-feat-blue); color: #0369A1; }
.bg-orange { background: var(--color-feat-orange); color: var(--icon-orange); }
.bg-pink { background: var(--color-feat-pink); color: var(--icon-pink); }
.bg-purple-light { background: var(--color-feat-indigo); color: var(--icon-indigo); }
.bg-indigo { background: var(--color-feat-indigo); color: #3730A3; }
.bg-teal { background: var(--color-feat-teal); color: var(--icon-teal); }
.bg-emerald { background: var(--color-feat-green); color: #047857; }

/* 
========================================
   How It Works
========================================
*/
.how-it-works-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.hiw-steps {
  margin: 32px 0 40px;
}

.hiw-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.hiw-steps li.active {
  color: var(--color-dark-text);
  font-weight: 600;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.hiw-steps li.active .step-num {
  background: var(--color-primary);
  color: white;
}

/* Workflow Visual Grid */
.workflow-grid {
  background: #F8FAFC;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workflow-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  width: 140px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 160px;
  justify-content: center;
}

.workflow-card h4 {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--color-dark-text);
}

.workflow-icon {
  width: 48px;
  height: 48px;
  background: #EEF2FF;
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
}

.workflow-icon.spinning {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.workflow-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.workflow-arrow {
  font-size: 1.25rem;
  color: #CBD5E1;
}

.text-primary { color: var(--color-primary); }

.workflow-card.outline {
  width: 180px;
  border: 2px dashed #CBD5E1;
  background: transparent;
  box-shadow: none;
}

.workflow-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: left;
  margin-bottom: 12px;
}

.workflow-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-dark-text);
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.workflow-card.list {
  width: 160px;
  text-align: left;
  align-items: flex-start;
}

.workflow-card.list ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.workflow-card.list li {
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  background: #F8FAFC;
}

.text-purple { color: #8B5CF6; }
.text-blue { color: #3B82F6; }
.text-orange { color: #F59E0B; }

/* 
========================================
   Security
========================================
*/
.security {
  background: #1A103C; /* Dark purple/navy */
}

.security-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.security-intro h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.security-intro p {
  color: #94A3B8;
  font-size: 1.1rem;
}

.security-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sec-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sec-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.sec-icon i.ph-shield-check { color: #E879F9; }
.sec-icon i.ph-lock-key { color: #60A5FA; }
.sec-icon i.ph-cloud-check { color: #34D399; }
.sec-icon i.ph-certificate { color: #FBBF24; }

.sec-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.sec-item p {
  color: #94A3B8;
  font-size: 0.9rem;
}

/* 
========================================
   Pricing
========================================
*/
.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.pricing-toggle {
  display: flex;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.toggle-btn {
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-btn.active {
  background: white;
  color: var(--color-dark-text);
  box-shadow: var(--shadow-sm);
}

.badge-save {
  background: #DCFCE7;
  color: #166534;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
}

.pricing-card.highlighted {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  min-height: 40px;
}

.price {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}

.price span {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-dark-text);
}

.plan-features {
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.plan-features li i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* 
========================================
   Testimonials
========================================
*/
.testimonials-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-dark-text);
  transition: all 0.2s;
}

.nav-btn:hover {
  background: var(--color-bg-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex: 1;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-main);
  margin-bottom: 32px;
}

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

.test-user img {
  border-radius: 50%;
}

.user-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.user-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.stars {
  margin-left: auto;
  color: #F59E0B;
  font-size: 0.9rem;
  display: flex;
  gap: 2px;
}

/* 
========================================
   Bottom CTA & Footer
========================================
*/
.cta-section {
  padding-bottom: 0;
}

.cta-banner {
  background: var(--color-dark);
  border-radius: 24px 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 60px;
  color: white;
}

.cta-mockups img {
  width: 100%;
  max-width: 500px;
}

.cta-content {
  padding-left: 40px;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-content p {
  color: #94A3B8;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badges img {
  height: 45px;
  border-radius: 8px;
}

.footer {
  background: var(--color-dark);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin: 16px 0 24px;
  max-width: 250px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #94A3B8;
  font-size: 1.25rem;
  transition: color 0.2s;
}

.social-links a:hover { color: white; }

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-newsletter p {
  color: #94A3B8;
  font-size: 0.9rem;
  margin: 12px 0 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: white;
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94A3B8;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover { color: white; }

/* Responsive basics */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .how-it-works-container { grid-template-columns: 1fr; }
  .workflow-grid { flex-wrap: wrap; justify-content: center; }
  .security-container { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .cta-content { padding-left: 0; }
  .store-badges { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Scroll Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-up-visible { opacity: 1; transform: translateY(0); }

/* Social Auth Buttons */
.btn-google { background: white; color: var(--color-dark-text); border: 1px solid var(--color-border); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.btn-google:hover { background: var(--color-bg-light); border-color: #cbd5e1; }
.btn-google img { width: 20px; height: 20px; }
.auth-divider { display: flex; align-items: center; text-align: center; color: var(--color-text-muted); margin-bottom: 20px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--color-border); }
.auth-divider:not(:empty)::before { margin-right: .5em; }
.auth-divider:not(:empty)::after { margin-left: .5em; }

/* Success Overlay */
.success-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.success-overlay.active { display: flex; opacity: 1; }
.success-card { background: white; padding: 40px; border-radius: var(--radius-lg); text-align: center; max-width: 400px; width: 90%; transform: translateY(20px); transition: transform 0.3s ease; }
.success-overlay.active .success-card { transform: translateY(0); }
.success-card i { font-size: 48px; color: #10B981; margin-bottom: 16px; }
.success-card h3 { color: var(--color-dark-text); margin-bottom: 8px; }
.success-card p { color: var(--color-text-muted); margin-bottom: 24px; }
.success-actions { display: flex; flex-direction: column; gap: 12px; }

/* Workspace Layout */
.workspace-body { background-color: var(--color-bg-light); display: flex; height: 100vh; overflow: hidden; margin: 0; font-family: 'Inter', sans-serif; }
.sidebar { width: 260px; background: white; border-right: 1px solid var(--color-border); display: flex; flex-direction: column; padding: 20px 0; }
.sidebar-logo { padding: 0 24px 30px; display: flex; align-items: center; gap: 12px; }
.sidebar-logo img { width: 32px; height: 32px; }
.sidebar-logo span { font-size: 1.25rem; font-weight: 700; color: var(--color-dark-text); }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--color-text-main); font-weight: 500; border-radius: var(--radius-md); transition: all 0.2s; }
.sidebar-nav a:hover { background: var(--color-bg-light); color: var(--color-primary); }
.sidebar-nav a.active { background: var(--color-feat-purple); color: var(--color-primary); }
.sidebar-nav a i { font-size: 1.25rem; }
.sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--color-border); }
.workspace-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.workspace-header { height: 70px; background: white; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.header-search { display: flex; align-items: center; background: var(--color-bg-light); border-radius: 100px; padding: 8px 16px; width: 400px; }
.header-search i { color: var(--color-text-muted); font-size: 1.2rem; }
.header-search input { background: transparent; border: none; outline: none; padding: 4px 12px; font-family: inherit; font-size: 0.95rem; width: 100%; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions i { font-size: 1.5rem; color: var(--color-text-main); cursor: pointer; }
.header-profile { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.header-profile img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.workspace-content { flex: 1; overflow-y: auto; padding: 32px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 32px; }
.dashboard-widget { background: white; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 16px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.dashboard-widget:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.widget-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.widget-content h3 { font-size: 1rem; color: var(--color-dark-text); margin: 0 0 4px 0; }
.widget-content p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }
.table-container { background: white; border-radius: var(--radius-lg); border: 1px solid var(--color-border); overflow: hidden; }
.table-header { padding: 20px 24px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; }
.table-header h3 { margin: 0; color: var(--color-dark-text); font-size: 1.1rem; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th { text-align: left; padding: 16px 24px; font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--color-border); }
.doc-table td { padding: 16px 24px; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; color: var(--color-text-main); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tbody tr:hover { background: var(--color-bg-light); cursor: pointer; }
.doc-name { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--color-dark-text); }
.doc-name i { font-size: 1.5rem; color: var(--color-primary); }
.doc-actions { display: flex; gap: 12px; }
.doc-actions button { background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 1.2rem; transition: color 0.2s; }
.doc-actions button:hover { color: var(--color-primary); }
