/* =========================
   Global
   ========================= */
body {
  background: linear-gradient(135deg, #eef2ff, #f1f5f9);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* =========================
   Card
   ========================= */
.card {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: none;
  border-radius: 18px;
}

.card-header {
  font-size: 1.05rem;
  background: linear-gradient(90deg, #1e40af, #2563eb);
  color: #fff;
  border-radius: 18px 18px 0 0;
}

.card-body {
  background-color: #ffffff;
}

/* =========================
   Inputs
   ========================= */
/* =========================
   Compact Form UI
   ========================= */
label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.form-control,
.form-select {
  height: 42px;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 8px 12px;
}

.form-control::placeholder {
  color: #9ca3af;
  font-size: 0.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.18);
}

.form-select,
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13,110,253,.25);
}

/* =========================
   Form Sections
   ========================= */
.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 6px;
  margin-bottom: 14px;
}


/* =========================
   Buttons
   ========================= */
.btn-primary {
  background: linear-gradient(90deg, #1e40af, #2563eb);
  border-radius: 14px;
  font-size: 0.95rem;
  padding: 10px 16px;
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #1e3a8a, #1d4ed8);
}

/* =========================
   Login Pill (Top Right)
   ========================= */
.login-pill {
  background-color: #ffffff;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.login-pill a {
  color: #1e40af;
  text-decoration: none;
  margin-left: 4px;
}

.login-pill a:hover {
  text-decoration: underline;
}

/* =========================
   Text
   ========================= */
.text-muted {
  font-size: 0.75rem;
  color: #6b7280 !important;
}

.mb-3 {
  margin-bottom: 0.9rem !important;
}

#demo .card {
  border-radius: 14px;
  background-color: #ffffff;
}

#demo i {
  font-size: 1.1rem;
}

#demo .text-primary {
  color: #1e40af !important;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    position: relative;
}

/* Navbar button */
.navbar .btn-primary {
    min-width: 120px;
}

.nav-logo {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
}
/* Lottie animation hero */
.hero-img {
    max-width: 400px;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.whatsapp-btn:hover {
    transform: translateY(-3px);
}

/* Feature Cards */
.feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 40px;
    color: #0d6efd;
    margin-bottom: 15px;
}

/* Pricing Cards */
.pricing-card {
    border-radius: 12px;
    transition: transform 0.3s;
    position: relative;
    padding-top: 30px;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.pricing-card h3 {
    color: #0d6efd;
}
/* Popular badge */
.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #212529;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Screenshots */
.screenshot img {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: #212529;
    color: #fff;
}

.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #0d6efd;
  padding: 4px;
  background: #fff;
}

@media print {
  .no-print { display: none; }
  body { background: #fff; }
}

body { font-size: 14px; }

.invoice-box {
  max-width: 900px;
  margin: auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #dee2e6;
}

.header-line {
  border-bottom: 3px solid #0d6efd;
  margin-bottom: 20px;
}

.invoice-title {
  color: #0d6efd;
  font-weight: 700;
  letter-spacing: 1px;
}

.table th {
  background: #f8f9fa;
}

.grand-total {
  background: #0d6efd;
  color: #fff;
  font-size: 16px;
}

/* Slightly tighter on very large screens */
/* RESPONSIVE */
/* @media (max-width: 767px) {
  .left-panel {
    display: none;
  }
  .form-wrapper {
    max-width: 90%;
  }
} */

/* LEFT PANEL */
.left-panel {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  padding: 60px 30px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Panel wrapper look */
.left-panel,
.col-md-7 {
  border-radius: 24px;
  overflow: hidden;
}

/* Right panel background */
.col-md-7 {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.left-content {
  max-width: 400px;
  margin: auto;
  position: relative;
  z-index: 2;
  padding-bottom: 200px;
}

/* Floating Watermark Illustration */
.left-panel .illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;           /* Increased size */
  height: 500px;          /* Increased size */
  transform: translate(-50%, -50%); /* Center horizontally & vertically */
  background: url('../img/illustration-invoice.svg') no-repeat center center;
  background-size: contain;
  opacity: 0.05;          /* Subtle watermark */
  z-index: 1;             /* Behind content */
  pointer-events: none;   /* Allows clicks on panel */
  mix-blend-mode: lighten; /* Blends nicely with gradient */

  /* Floating animation */
  animation: floatWatermark 12s ease-in-out infinite alternate;
}

/* Floating keyframes: subtle random-like movement */
@keyframes floatWatermark {
  0% {
    transform: translate(-50%, -50%) translateX(0px) translateY(0px) rotate(0deg);
  }
  25% {
    transform: translate(-50%, -50%) translateX(10px) translateY(-10px) rotate(-1deg);
  }
  50% {
    transform: translate(-50%, -50%) translateX(-10px) translateY(10px) rotate(1deg);
  }
  75% {
    transform: translate(-50%, -50%) translateX(5px) translateY(-5px) rotate(-0.5deg);
  }
  100% {
    transform: translate(-50%, -50%) translateX(0px) translateY(0px) rotate(0deg);
  }
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.feature-list li {
  font-size: 0.9rem;
  margin-bottom: 14px;
  position: relative;
  padding-left: 24px;
  color: #e0e7ff;
}

.feature-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #bbf7d0;
  font-size: 0.85rem;
}

/* FORM CARD */
.form-card {
  border-radius: 18px;
  overflow: hidden;
}

.form-card .card-body {
  padding: 30px;
}

/* =========================
   Force Bootstrap modal scrolling
========================= */
#editInvoiceModal .modal-dialog {
    max-width: 95%; /* or 1200px for xl */
    margin: 1.5rem auto; /* standard Bootstrap */
}

#editInvoiceModal .modal-body {
    max-height: 70vh; /* body scrolls */
    overflow-y: auto;
}

/* Optional: make modal XL responsive */
@media (max-width: 768px) {
    #editInvoiceModal .modal-dialog {
        max-width: 100%;
        margin: 0.5rem;
    }
    #editInvoiceModal .modal-body {
        max-height: 80vh;
    }
}


