/* =========================================================
   AUTH PAGES – GLOBAL LAYOUT
   Purpose:
   - Defines full-page background
   - Keeps navbar normal
   - Centers auth content correctly
   ========================================================= */

/* Page background + font */
body.auth-layout {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
}

/* Ensure navbar always stays above content */
.navbar {
  z-index: 1050;
}

/* =========================================================
   AUTH WRAPPER
   Purpose:
   - Centers auth card vertically
   - Accounts for navbar height
   ========================================================= */

.auth-wrapper {
  min-height: calc(100vh - 72px); /* subtract navbar height */
  display: flex;
  align-items: center;
  justify-content: center; /* left-aligned card */
  padding: 2rem;
}

/* =========================================================
   AUTH CARD (Login / Signup)
   Purpose:
   - Main authentication container
   - Desktop-first sizing
   ========================================================= */

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  justify-content: center; 
  align-items: center;
}

/* Headings & subtitle inside auth card */
.auth-card h3 {
  font-weight: 700;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

/* =========================================================
   FORM ELEMENTS
   Purpose:
   - Improve readability
   - Increase tap comfort
   ========================================================= */

.auth-card .form-control {
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

.auth-card .btn {
  padding: 0.65rem;
  font-weight: 600;
}

/* =========================================================
   RESPONSIVENESS
   ========================================================= */

/* Tablets */
@media (max-width: 868px) {
  .auth-wrapper {
    justify-content: center;
  }

  .auth-card {
    max-width: 380px;
    padding: 1.75rem;
  }
}

/* Small phones */
@media (max-width: 480px) {

  /* Switch to clean white background on mobile */
  body.auth-layout {
    background: #ffffff;
  }

  /* Full-screen mobile auth */
  .auth-wrapper {
    min-height: calc(100vh - 64px);
    padding: 1rem;
  }

  .auth-card {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 1.5rem;
  }

  /* Typography scaling */
  .auth-card h3 {
    font-size: 1.4rem;
  }

  .auth-subtitle {
    font-size: 0.85rem;
  }

  /* Better tap experience */
  .auth-card .form-control {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

/* =========================================================
   TOP NAVBAR STYLING
   Purpose:
   - Professional SaaS header
   - Clean spacing & hierarchy
   ========================================================= */

.navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
}

.navbar .nav-link {
  font-weight: 500;
  color: #495057;
}

.navbar .nav-link:hover {
  color: #0d6efd;
}

/* Auth buttons in navbar */
.navbar .btn-sm {
  padding: 0.35rem 0.75rem;
  font-weight: 600;
}

/* Mobile navbar behavior */
@media (max-width: 991px) {
  .navbar-nav {
    padding-top: 1rem;
  }

  .navbar .btn {
    width: 100%;
  }

  .navbar .d-flex {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
}






/* =========================================================
   FOOTER
   Purpose:
   - Global site footer
   - Branding, navigation, social icons
   ========================================================= */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: auto;
}

/* Brand name */
.footer-brand {
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.25rem;
}

/* Short footer note */
.footer-note {
  margin: 0;
  font-size: 0.85rem;
}

/* Footer navigation links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: #6c757d;
  font-weight: 500;
}

.footer-links a:hover {
  color: #0d6efd;
}

/* Social icons */
.footer-socials a {
  color: #6c757d;
  margin-left: 0.75rem;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.footer-socials a:hover {
  color: #0d6efd;
}

/* Bottom copyright */
.footer-bottom {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #adb5bd;
}

/* =========================================================
   FOOTER RESPONSIVENESS
   ========================================================= */

@media (max-width: 767px) {
  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .footer-socials a {
    margin: 0 0.5rem;
  }
}



 body {
      background: #f5f7fb;
      font-size: 14px;
    }

    .invoice-editor {
      background: #fff;
      max-width: 900px;
      margin: 40px auto;
      padding: 40px;
      box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

    .invoice-title {
      font-size: 26px;
      font-weight: 700;
    }

    .invoice-table th {
      background: #343a40;
      color: #fff;
    }

    .form-control,
    .form-select {
      border-radius: 0;
    }

    .total-box {
      font-size: 14px;
      font-weight: 600;
      color: #dc3545;
    }

    .invoice-wrapper {
  height: 100vh;
}





/* Invoice Preview */
/* .invoice-wrapper {
  display: flex;
  height: 100vh;
}

.editor-section {
  width: 60%;
  overflow-y: auto;
  border-right: 1px solid #ddd;
}

.preview-section {
  width: 40%;
  overflow-y: auto;
  background: #f8f9fa;
}

.invoice-preview-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  min-height: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
} */


/* ================================
   Fix Invoice Split Layout
================================ */

/* ===============================
   LAYOUT FIX
================================ */

html, body {
  overflow-x: hidden;
} */

/* body.auth-layout {
  background: #f4f6f9 !important;
}

/* Wrapper */
.invoice-wrapper {
  display: flex;
  flex-wrap: wrap;   /* allows stacking */
  width: 100%;
  min-height: 100vh;
}

/* Desktop layout */
.editor-section {
  flex: 0 0 60%;
  max-width: 60%;
  background: #ffffff;
  border-right: 1px solid #e5e5e5;
}

.preview-section {
  flex: 0 0 40%;
  max-width: 40%;
  background: #f8f9fa;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
================================ */

/* Tablet */
@media (max-width: 992px) {
  .editor-section,
  .preview-section {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .editor-section {
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .invoice-wrapper {
    display: block;
  }

  .editor-section,
  .preview-section {
    width: 100%;
  }
}

.preview-section {
  position: sticky;
  top: 70px;
}

