/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
}

/* NAVBAR */
nav {
    background: #1e2833;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.4rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.2s;
}

nav ul li a:hover {
    opacity: 0.7;
}

/* LOGIN BUTTON */
.login-btn {
    border: 1px solid #4caf50;
    padding: 8px 16px;
    border-radius: 5px;
    color: #4caf50;
    font-weight: bold;
}

.login-btn:hover {
    background: #4caf50;
    color: white;
    opacity: 1;
}

/* HERO */
header {
    background: linear-gradient(to right, #243447, #1e2833);
    color: white;
    padding: 90px 40px;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 30px auto;
}

.cta-btn {
    background: #4caf50;
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.cta-btn:hover {
    background: #46a049;
}

/* CONTENT */
main {
    padding: 70px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
    background: #1e2833;
    color: white;
    padding: 30px 40px;
    text-align: center;
    margin-top: 60px;
}

/* MOBILE */
@media (max-width: 720px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1.1rem;
    }
}

.login-container {
    min-height: calc(100vh - 160px); /* account for nav + footer */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

.login-box h1 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    opacity: 0.8;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.login-btn:hover {
    background: #46a049;
}

.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.dashboard-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dashboard-card p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 14px rgba(0,0,0,0.15);
}

/* This is the CSS specifically for the invoice_new.html *\

.invoice-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #ddd;
  font-family: Arial, Helvetica, sans-serif;
}

/* HEADER */
.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
  }
  
  .invoice-title h1 {
    margin: 0;
    font-size: 32px;
  }
  
  .invoice-meta {
    display: flex;
    gap: 16px;
  }
  
  .meta-row {
    display: flex;
    flex-direction: column;
    font-size: 12px;
  }
  
  .meta-row input {
    padding: 6px;
    font-size: 14px;
  }
  
  /* COMPANY / BILL TO */
  .party-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
  }
  
  .party-section h3 {
    margin-bottom: 8px;
  }
  
  .party-section input,
  .party-section textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .party-section textarea {
    min-height: 80px;
    resize: vertical;
  }
  
  /* LINE ITEMS TABLE */
  .line-items {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
  }
  
  .line-items thead th {
    border-bottom: 2px solid #333;
    padding: 10px;
    text-align: left;
    font-size: 14px;
  }
  
  .line-items tbody td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
  }
  
  .line-items input {
    width: 100%;
    padding: 6px;
    font-size: 14px;
  }
  
  .qty {
    width: 80px;
  }
  
  .price,
  .amount {
    width: 120px;
    text-align: right;
  }
  
  .amount-cell {
    text-align: right;
    font-weight: bold;
  }
  
  /* ADD LINE BUTTON */
  .add-line-btn {
    margin-top: 12px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    cursor: pointer;
  }
  
  /* TOTALS */
  .totals {
    margin-top: 32px;
    max-width: 300px;
    margin-left: auto;
  }
  
  .totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
  }
  
  .totals-row.total {
    font-weight: bold;
    border-top: 1px solid #ccc;
  }
  
  .totals-row.amount-due {
    font-size: 18px;
    font-weight: bold;
    border-top: 2px solid #333;
    margin-top: 8px;
  }

  /* APP LAYOUT */
.app-layout {
  display: flex;
  min-height: calc(100vh - 160px); /* nav + footer */
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: #1e2833;
  color: white;
  padding: 30px 20px;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-nav a{
  display: flex;              /* makes alignment consistent */
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin: 0;
  line-height: 1;             /* avoids weird baseline differences */
  text-indent: 0;             /* kills accidental indent */
  white-space: nowrap;        /* optional: prevents wrap */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* MAIN AREA */
.main-area {
  flex: 1;
  background: #f7f7f7;
  padding: 40px;
}

/* PAGE HEADER */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  margin: 0;
  font-size: 2.2rem;
}

/* CONTENT PLACEHOLDER */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* HIDDEN STATE */
.hidden {
  display: none;
}

/* MODAL BOX */
.modal {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0,0,0,0.25);
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.modal p {
  margin-bottom: 25px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Schedule Invoice Button (match CTA) */
.schedule-btn {
  background: #4caf50;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

.schedule-btn:hover {
  background: #46a049;
}


/* MODAL ACTIONS */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-primary {
  background: #1e2833;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.modal-primary:hover {
  opacity: 0.9;
}

.modal-secondary {
  background: transparent;
  border: none;
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
}

/* =========================
   INVOICE VIEW PAGE
   ========================= */

   .invoice-section {
    margin-top: 50px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e2833;
  }
  
  /* Invoice Table */
  .invoice-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 30px;
  }
  
  .invoice-table thead {
    background: #f0f2f5;
  }
  
  .invoice-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
    border-bottom: 1px solid #ddd;
  }
  
  .invoice-table td {
    padding: 12px 14px;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
  }
  
  .invoice-table tr:last-child td {
    border-bottom: none;
  }
  
  /* Hover */
  .invoice-table tbody tr:hover {
    background: #f7f9fb;
  }
  
  /* Amount column emphasis */
  .invoice-table td:nth-child(5) {
    font-weight: bold;
  }
  
  /* Action link */
  .invoice-table a {
    color: #4caf50;
    font-weight: bold;
    text-decoration: none;
  }
  
  .invoice-table a:hover {
    text-decoration: underline;
  }
  
  /* Empty state text */
  .page-content .muted {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 30px;
  }
  
  /* Status colors (future-proof) */
.status-draft {
  color: #777;
}

.status-scheduled {
  color: #ff9800;
}

.status-sent {
  color: #2196f3;
}

.status-overdue {
  color: #d32f2f;
  font-weight: bold;
}

/* Customers HTML*/

/* CUSTOMERS */

.customers-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.customers-table th,
.customers-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.customers-table th {
  background: #f0f2f5;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #555;
}

.customer-form {
  max-width: 600px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.customer-form h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
}

.pricing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
}

.pricing-card.featured {
  border: 2px solid #333;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.price span {
  font-size: 0.9rem;
  color: #666;
}

.pricing-card ul {
  padding-left: 1.2rem;
}

.tier-desc {
  color: #555;
  margin-bottom: 1rem;
}

.tier-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}

/* ===== Homepage layout helpers ===== */
.section { margin-bottom: 28px; }

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
}

.cta-btn.secondary:hover {
  background: rgba(255,255,255,0.12);
}

.hero-note {
  margin-top: 18px;
  opacity: 0.85;
  font-size: 0.95rem;
}

.muted { opacity: 0.75; }

.divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 24px 0;
}

/* Callout */
.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid #4caf50;
  background: #f6fbf7;
  border-radius: 6px;
}

/* Steps */
.subhead { margin-top: 22px; margin-bottom: 12px; }

.steps {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.step {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
}

.step-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.step-body { opacity: 0.9; }

/* Simple grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.grid-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px 16px;
}

.grid-item h4 { margin: 0 0 6px 0; }
.grid-item p { margin: 0; opacity: 0.85; }

/* Bullets */
.bullets {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.7;
}

/* CTA card slight emphasis */
.cta-card {
  border: 1px solid rgba(76,175,80,0.25);
}

/* Responsive */
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}
