/* Base styles for Handyman CRM */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  color: #333;
}

.topbar {
  background: #2c3e50;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .brand {
  font-size: 1.5em;
  font-weight: bold;
}

.topbar .nav a {
  color: #ecf0f1;
  margin-right: 15px;
  text-decoration: none;
  font-size: 0.95em;
}

.topbar .nav a:hover {
  text-decoration: underline;
}

.topbar .user-info {
  font-size: 0.9em;
}

.content {
  padding: 20px;
}

.footer {
  background: #ecf0f1;
  padding: 15px;
  text-align: center;
  font-size: 0.85em;
  border-top: 1px solid #ddd;
}

/* Forms */
.form label {
  display: block;
  margin: 8px 0 4px;
  font-weight: bold;
}

.form input, .form select, .form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.form button {
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn.primary {
  background: #3498db;
  color: #fff;
}

.btn.primary:hover {
  background: #2980b9;
}

.btn.danger {
  background: #e74c3c;
  color: #fff;
}

.btn.danger:hover {
  background: #c0392b;
}

.btn.secondary {
  background: #95a5a6;
  color: #fff;
}

.btn.secondary:hover {
  background: #7f8c8d;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th, .table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.table th {
  background: #f0f0f0;
}

.table tr:nth-child(even) {
  background: #fbfbfb;
}

/* Alerts */
.alert {
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.alert-danger {
  background: #e74c3c;
  color: #fff;
}

.alert-success {
  background: #2ecc71;
  color: #fff;
}

/* Authentication page styles */
.auth-wrap {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
}

.auth-card h1 {
  margin-top: 0;
  text-align: center;
}

.muted {
  color: #7f8c8d;
}

.small {
  font-size: 0.85em;
}

/* Share page styles */
.share-wrap {
  max-width: 600px;
  margin: 40px auto;
}

.share-card table {
  width: 100%;
}

.total {
  text-align: right;
  font-size: 1.2em;
}