/* --- General Styles --- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7fa;
  margin: 0;
  padding: 0;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Navigation --- */
.nav {
  display: flex;
  gap: 20px;
  background-color: #2c3e50;
  padding: 12px 20px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover {
  color: #1abc9c;
}

/* --- Headings --- */
h1, h2, h3 {
  color: #34495e;
  margin-bottom: 15px;
}

/* --- Cards (Dashboard) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.card {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}
.card h3 { font-size: 1rem; margin-bottom: 10px; }
.card p { font-size: 1.2rem; font-weight: bold; }

/* --- Forms --- */
.form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.form input, .form select, .form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
textarea { min-height: 80px; }
button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 10px;
}
button#invoice-submit, button#client-submit { background: #27ae60; color: #fff; }
button.secondary, button#invoice-cancel, button#client-cancel { background: #c0392b; color: #fff; }

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
th, td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}
th {
  background-color: #2980b9;
  color: #fff;
}
#invoices-table tbody tr.paid { background-color: #dff0d8; }  
#invoices-table tbody tr.unpaid { background-color: #f2dede; } 
.actions button {
  padding: 5px 10px;
  margin-right: 5px;
  font-size: 14px;
}
.actions .edit { background-color: #f39c12; color: #fff; }
.actions .delete { background-color: #c0392b; color: #fff; }
.actions .toggle-paid { background-color: #27ae60; color: #fff; }

/* --- Quote Section --- */
.quote-card {
  padding: 15px;
  background: #e1f5fe;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
}
#quote-text { font-style: italic; font-size: 1.1rem; margin-bottom: 5px; }
#quote-author { font-weight: bold; }