.page-header {
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0;
}

.subtitle {````
    color: #666;
    font-size: 14px;
}

.form-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-group label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

.form-group label span {
    color: red;
}

.form-group input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px #4f46e5;
}

.form-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn.primary {
    background: #4f46e5;
    color: white;
}

.btn.primary:hover {
    background: #4338ca;
}

.btn.secondary {
    background: #e5e7eb;
    color: #111;
}

.btn.secondary:hover {
    background: #d1d5db;
}

/* ===== Builders List ===== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Table */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f3f4f6;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.data-table th {
    font-weight: 600;
    color: #374151;
}

.data-table tr:hover {
    background: #f9fafb;
}

.no-data {
    text-align: center;
    color: #6b7280;
    padding: 25px;
}

/* Status badges */

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

/* Actions */

.actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.btn-small {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-edit {
    background: #e0e7ff;
    color: #3730a3;
}

.btn-edit:hover {
    background: #c7d2fe;
}

.btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.btn-delete:hover {
    background: #fecaca;
}

.btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
}


.project-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 20px;
  align-items: start;
}

.form-section {
  padding-right: 10px;
}

.map-section {
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
}

.map-section h4 {
  margin: 6px 0;
  font-size: 14px;
  color: #374151;
}

#map,
#map_search {
  height: 280px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Mobile */
@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: 100%;
  }

  #map,
  #map_search {
    height: 260px;
  }
}

/* ===== Asset Photo Upload ===== */

.photo-section {
  margin-top: 25px;
}

.photo-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.photo-upload-box {
  border: 2px dashed #c7d2fe;
  padding: 18px;
  border-radius: 6px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  position: relative;
}

.photo-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-upload-box span {
  color: #4f46e5;
  font-size: 14px;
}

.photo-preview {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.photo-preview img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.valuation-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.valuation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
