/* invoice.css - Add/Invoice & List Page */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0f172a;           /* dark slate for night-mode feel */
  color: #e2e8f0;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header / Title */
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #334155;
}

.invoice-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #f97316;                /* orange accent */
}

.back-btn {
  background: transparent;
  border: 1px solid #475569;
  color: #cbd5e1;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.back-btn:hover {
  background: #1e293b;
  color: white;
}

/* Form - Add New Invoice */
.add-invoice-form {
  background: #1e293b;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #cbd5e1;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  background: #f97316;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 1.5rem auto 0;
}

.submit-btn:hover {
  background: #ea580c;
  transform: translateY(-2px);
}

/* Invoice List / Dashboard */
.invoice-list {
  display: grid;
  gap: 1.5rem;
}

.invoice-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid #475569; /* default neutral */
  transition: all 0.2s;
}

.invoice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Status colors */
.invoice-card.overdue {
  border-left-color: #ef4444; /* red */
}

.invoice-card.upcoming {
  border-left-color: #f59e0b; /* yellow/orange */
}

.invoice-card.paid {
  border-left-color: #10b981; /* green */
  opacity: 0.85;
}

.invoice-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #f97316;
}

.invoice-card .meta {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 0.8rem;
}

.invoice-card .amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.invoice-card .actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.action-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn.nudge {
  background: #f97316;
  color: white;
  border: none;
}

.action-btn.mark-paid {
  background: #10b981;
  color: white;
  border: none;
}

.action-btn.delete {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
}

.action-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: #94a3b8;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: white;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .invoice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .add-invoice-form {
    padding: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}