/* client/client.css */
/* Tema cerah dan ringkas untuk client portal */

:root {
  --primary: #ff7a00;
  --primary-dark: #e06900;
  --bg-body: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
}

* {
  box-sizing: border-box;
}

.form-divider{
  border:0;
  border-top:1px solid #e5e7eb;
  margin:20px 0;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Background pattern VIGOR */
  background: #020617 url("../img/bgvigor.png") repeat;
  background-size: 220px;

  color: var(--text-main);
  line-height: 1.5;
}


/* HEADER CLIENT */

header {
  background: #0f172a;
  color: #f9fafb;
  border-bottom: 1px solid rgba(15, 23, 42, .9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-main img {
  height: 40px;
  width: auto;
  border-radius: 999px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #f9fafb;
}

.brand-sub {
  font-size: 11px;
  color: #9ca3af;
}

.brand-extra img {
  height: 32px;
  width: auto;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(249, 115, 22, .4);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #e5e7eb;
  font-size: 13px;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav a:hover {
  border-color: rgba(249, 115, 22, .65);
  color: #f97316;
  background: rgba(15, 23, 42, .7);
}

.main-nav .btn-primary-nav {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(249, 115, 22, .6);
}

.main-nav .btn-primary-nav:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* MOBILE HEADER */

@media (max-width: 700px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }
  .main-nav {
    justify-content: center;
  }
}

/* KANDUNGAN UMUM */

.wrap {
  max-width: 1000px;
  margin: 18px auto 32px;
  padding: 0 14px;
}

/* Kad / panel putih */

.panel {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  padding: 18px 16px 20px;
}

.panel + .panel {
  margin-top: 14px;
}

/* Tajuk seksyen */

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* FORM FIELD */

.form-field {
  margin-bottom: 10px;
}

.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #374151;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.form-field textarea {
  min-height: 90px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, .25);
}

/* BUTANG */

button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary,
button.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .5);
}

.btn-primary:hover,
button.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f3f4f6;
}

/* Alert / nota */

.alert {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.alert-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Teks kecil */

.small-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* FOOTER */

footer {
  margin-top: 26px;
  padding: 14px 10px 20px;
  text-align: center;
  font-size: 11px;

  background: rgba(15, 23, 42, 0.96);
  border-top: 3px solid var(--primary);
  color: #e5e7eb;
}

footer a {
  color: #f97316;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------
   PROPERTY CARD – OREN SOFT (NEW DESIGN)
------------------------------------------------------- */

.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* KOTAK SENARAI RUMAH – OREN SOFT */
.property-card {
    background: rgba(255, 122, 0, 0.10);   /* Oren soft sentiasa ON */
    border: 1px solid rgba(255, 122, 0, 0.20);
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: 0.25s ease;
}

.property-card:hover {
    background: rgba(255, 122, 0, 0.18);  /* Pekat sikit bila hover */
    border-color: rgba(255, 122, 0, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

/* Tajuk rumah */
.property-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

/* Subtitle/Alamat */
.property-subtitle {
    font-size: 13px;
    color: #374151;
    margin-top: 4px;
}

/* Role pemilik/pembeli */
.property-role {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
    opacity: 0.8;
}

/* Link Lihat Status */
.property-actions .btn-link {
    font-size: 13px;
    color: #ff7a00;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==============================
   Senarai rumah – dashboard client
   ============================== */

.client-main .property-list {
  margin-top: 10px;
}

/* Asas kad rumah – OREN SOFT sentiasa ada */
.client-main .property-card {
  position: relative;
  display: block;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.06);      /* oren soft */
  border: 1px solid rgba(249, 115, 22, 0.18); /* border oren soft */
  text-decoration: none;
  color: #111827;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
  transition: all 0.18s ease-out;
}

/* Hover – lebih terang sikit */
.client-main .property-card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 237, 213, 0.95),
    rgba(253, 186, 116, 0.95)
  );
  border-color: #fdba74;
  box-shadow: 0 8px 22px rgba(248, 113, 22, 0.28);
  transform: translateY(-2px);
}

