* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Table */
.partners-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.partners-table th {
  background: #fafafa;
  font-weight: 600;
  font-size: 0.875rem;
  color: #666;
}

.partners-table tr:last-child td {
  border-bottom: none;
}

.partners-table tr:hover td {
  background: #f9f9f9;
}

.empty-state {
  text-align: center;
  color: #888;
  padding: 40px 16px !important;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.badge-prospect { background: #e5e5e5; color: #555; }
.badge-pilot { background: #dbeafe; color: #1d4ed8; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-converting { background: #ede9fe; color: #6b21a8; }

.badge-status-active { background: #d1fae5; color: #065f46; }
.badge-status-inactive { background: #e5e5e5; color: #555; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  background: #e5e5e5;
  color: #333;
}

.btn:hover {
  background: #d5d5d5;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
}

.btn-primary:hover {
  background: #333;
}

.btn-danger {
  background: #fee;
  color: #c00;
}

.btn-danger:hover {
  background: #fdd;
}

.btn-small {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.actions-cell {
  white-space: nowrap;
}

.actions-cell .btn {
  margin-right: 4px;
}

.actions-cell .btn:last-child {
  margin-right: 0;
}

/* Notes cell */
.notes-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 480px;
  margin: 40px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.close {
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: #333;
}

/* Form */
form {
  padding: 20px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}

.notes-cell,
.form-group textarea {
  vertical-align: top;
}
