/* ============================================================
   WEBNUSA - Modern Web Development Platform Stylesheet
   ============================================================ */

:root {
  --wn-primary: #0d6efd;
  --wn-primary-dark: #0a4ebd;
  --wn-secondary: #0f172a;
  --wn-accent: #06b6d4;
  --wn-success: #10b981;
  --wn-warning: #f59e0b;
  --wn-danger: #ef4444;
  --wn-light: #f8fafc;
  --wn-card-bg: #ffffff;
  --wn-border: #e2e8f0;
  --wn-text: #1e293b;
  --wn-muted: #64748b;
  --wn-radius: 14px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--wn-text);
  background-color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Navbar */
.navbar-webnusa {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand-text {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  color: #cbd5e1 !important;
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
  color: #38bdf8 !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0b3b60 100%);
  color: white;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Card Styling */
.card-wn {
  background: var(--wn-card-bg);
  border: 1px solid var(--wn-border);
  border-radius: var(--wn-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-wn:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-service {
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: var(--wn-radius);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card-service:hover {
  transform: translateY(-4px);
  border-color: var(--wn-primary);
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.12);
}

.card-service.selected {
  border-color: var(--wn-primary);
  background-color: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.card-service.selected::after {
  content: '\F26E';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  background: var(--wn-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Multi-Step Wizard */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.wizard-progress-line {
  position: absolute;
  top: 24px;
  left: 30px;
  height: 3px;
  background: var(--wn-primary);
  z-index: 2;
  transition: width 0.4s ease;
  width: 0%;
}

.wizard-step {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
}

.wizard-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.wizard-step.active .wizard-step-circle {
  border-color: var(--wn-primary);
  background: var(--wn-primary);
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.2);
}

.wizard-step.completed .wizard-step-circle {
  border-color: var(--wn-success);
  background: var(--wn-success);
  color: #ffffff;
}

.wizard-step-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.wizard-step.active .wizard-step-title {
  color: var(--wn-primary);
}

.wizard-step.completed .wizard-step-title {
  color: var(--wn-text);
}

.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
  animation: fadeInStep 0.3s ease-in-out;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Status Badges */
.badge {
  font-weight: 600;
  padding: 0.45em 0.85em;
  border-radius: 30px;
  letter-spacing: 0.3px;
}

/* Progress Tracker Widget */
.tracking-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}

.tracking-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.tracking-step-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s;
}

.tracking-step.done .tracking-step-dot {
  background: var(--wn-success);
  border-color: var(--wn-success);
  color: white;
}

.tracking-step.active .tracking-step-dot {
  background: var(--wn-primary);
  border-color: var(--wn-primary);
  color: white;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* Admin Dashboard Specific */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  overflow-y: auto;
}

.admin-sidebar .sidebar-link {
  color: #94a3b8;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  margin: 4px 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-sidebar .sidebar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar .sidebar-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.admin-main-content {
  margin-left: 260px;
  padding: 30px;
  min-height: 100vh;
  background: #f8fafc;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    margin-left: -260px;
  }
  .admin-sidebar.show {
    margin-left: 0;
  }
  .admin-main-content {
    margin-left: 0;
    padding: 15px;
  }
}

/* KPI Card */
.kpi-card {
  border-radius: var(--wn-radius);
  background: white;
  border: 1px solid var(--wn-border);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.kpi-card .kpi-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Floating WhatsApp Button */
.btn-floating-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.btn-floating-wa:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Print Invoice Style */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .no-print, .navbar, footer, .btn, .btn-floating-wa, .admin-sidebar {
    display: none !important;
  }
  .admin-main-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  .invoice-box {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

