/**
 * 💰 Invoices Module Styles
 */

.invoice-filter-btn {
  transition: all 0.3s ease;
}

.invoice-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.invoice-filter-btn.active {
  background: rgba(102, 126, 234, 0.4) !important;
  border-color: rgba(102, 126, 234, 0.6) !important;
  font-weight: bold;
}

.invoice-card {
  transition: all 0.3s ease;
}

.invoice-card:hover {
  transform: translateX(4px);
  border-color: rgba(102, 126, 234, 0.5) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.line-item input:focus,
.line-item select:focus,
#invoiceCustomer:focus,
#invoiceTaxRate:focus,
#invoiceDueDate:focus,
#invoiceNotes:focus {
  outline: none;
  border-color: rgba(102, 126, 234, 0.6);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.remove-line-item:hover {
  background: #dc2626 !important;
  transform: scale(1.05);
}

#saveInvoiceBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#saveInvoiceBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.copy-payment-link-btn:hover,
.generate-link-btn:hover,
.edit-invoice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Import modal drag and drop area */
#importModal [onclick*="importFileInput"] {
  transition: all 0.3s ease;
}

#importModal [onclick*="importFileInput"]:hover {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(102, 126, 234, 0.05);
}

/* Animation for toast notifications */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Status badge colors */
.status-unpaid {
  color: #f59e0b;
}

.status-paid {
  color: #10b981;
}

.status-overdue {
  color: #ef4444;
}

.status-cancelled {
  color: #6b7280;
}

/* Responsive design */
@media (max-width: 768px) {
  #invoiceModal > div,
  #importModal > div {
    margin: 20px auto;
    padding: 20px;
  }

  .line-item > div {
    grid-template-columns: 1fr !important;
  }

  .invoice-card {
    padding: 12px !important;
  }

  .invoice-card > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .invoice-card > div:last-child {
    flex-direction: column !important;
    gap: 8px !important;
  }
}
