*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0B1D3E; --blue: #1A56DB; --orange: #E85D26; --white: #FFFFFF;
  --gray-50: #F8F9FB; --gray-200: #E2E6ED; --gray-400: #9AA3B0;
  --gray-600: #5A6478; --gray-800: #1E2533; --green: #059669; --red: #DC2626;
  --font: 'Inter', sans-serif; --font-d: 'Manrope', sans-serif; --t: .2s ease;
}
body { font-family: var(--font); color: var(--gray-800); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }

.dash-wrapper { display: flex; min-height: 100vh; }

.dash-sidebar { width: 220px; background: var(--navy); color: white; display: flex; flex-direction: column; padding: 24px 0; flex-shrink: 0; }
.dash-logo { padding: 0 20px 24px; display: block; }
.dash-logo img { height: 32px; filter: brightness(0) invert(1); }
.dash-nav { display: flex; flex-direction: column; flex: 1; }
.dash-tab { text-align: left; padding: 12px 20px; color: rgba(255,255,255,.65); font-size: .875rem; font-weight: 500; transition: background var(--t), color var(--t); }
.dash-tab:hover { background: rgba(255,255,255,.08); color: white; }
.dash-tab.active { background: rgba(26,86,219,.25); color: white; font-weight: 700; }
.dash-messages-link { padding: 12px 20px; color: rgba(255,255,255,.65); font-size: .875rem; border-top: 1px solid rgba(255,255,255,.1); }
.dash-messages-link:hover { color: white; }

.dash-main { flex: 1; padding: 32px 40px; background: var(--gray-50); overflow-y: auto; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-panel h1 { font-family: var(--font-d); font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.panel-header h1 { margin-bottom: 0; }

.btn-primary { background: var(--blue); color: white; font-size: .85rem; font-weight: 700; padding: 10px 18px; border-radius: 8px; transition: opacity var(--t); }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: white; color: var(--blue); border: 1.5px solid var(--blue); font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 8px; }
.btn-danger { background: white; color: var(--red); border: 1.5px solid var(--red); font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 8px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: white; border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px; }
.stat-val { font-family: var(--font-d); font-size: 1.8rem; font-weight: 800; color: var(--gray-800); }
.stat-lbl { font-size: .8rem; color: var(--gray-400); margin-top: 4px; }

.properties-list { display: flex; flex-direction: column; gap: 16px; }
.property-card { background: white; border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px; }
.property-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.property-title { font-weight: 700; font-size: 1.05rem; }
.property-address { font-size: .8rem; color: var(--gray-400); margin-bottom: 12px; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.room-mini-card { border: 1px solid var(--gray-200); border-radius: 8px; padding: 12px; font-size: .82rem; }
.room-mini-label { font-weight: 700; margin-bottom: 4px; }
.room-mini-price { color: var(--orange); font-weight: 700; }
.add-room-mini { border: 1.5px dashed var(--gray-200); border-radius: 8px; padding: 12px; display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: .82rem; cursor: pointer; }
.add-room-mini:hover { border-color: var(--blue); color: var(--blue); }

.requests-list { display: flex; flex-direction: column; gap: 12px; }
.request-card { background: white; border: 1px solid var(--gray-200); border-radius: 12px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.request-info { flex: 1; min-width: 200px; }
.request-room { font-weight: 700; font-size: .9rem; }
.request-meta { font-size: .8rem; color: var(--gray-400); margin-top: 2px; }
.request-message { font-size: .82rem; color: var(--gray-600); margin-top: 6px; }
.request-actions { display: flex; gap: 8px; }
.status-pill { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.status-pending { background: rgba(251,191,36,.15); color: #92400E; }
.status-accepted, .status-approved { background: rgba(5,150,105,.1); color: var(--green); }
.status-declined, .status-rejected { background: rgba(220,38,38,.1); color: var(--red); }

.empty-msg { color: var(--gray-400); font-size: .875rem; padding: 20px 0; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 500; }
.modal-overlay.open { display: flex; }
.modal-card { background: white; border-radius: 14px; padding: 24px; width: 400px; max-width: calc(100vw - 40px); max-height: 85vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 16px; right: 18px; font-size: 1.3rem; color: var(--gray-400); cursor: pointer; }
.modal-card h3 { font-family: var(--font-d); font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.modal-card label { font-size: .78rem; font-weight: 600; color: var(--gray-600); display: block; margin: 10px 0 5px; }
.modal-card input[type="text"], .modal-card input[type="number"], .modal-card textarea {
  width: 100%; border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 8px 10px; font-family: var(--font); font-size: .85rem; outline: none;
}
.modal-card textarea { resize: vertical; }
.check-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; font-size: .82rem; }
.check-row label { display: flex; align-items: center; gap: 5px; font-weight: 500; color: var(--gray-700); margin: 0; }


.profile-form { max-width: 480px; background: white; border: 1px solid var(--gray-200); border-radius: 12px; padding: 24px; }
.profile-form label { font-size: .8rem; font-weight: 600; color: var(--gray-600); display: block; margin: 14px 0 6px; }
.profile-form label:first-child { margin-top: 0; }
.profile-form input, .profile-form textarea {
  width: 100%; border: 1.5px solid var(--gray-200); border-radius: 8px;
  padding: 9px 12px; font-family: var(--font); font-size: .85rem; outline: none;
}
.profile-form textarea { resize: vertical; }
.profile-stats { display: flex; gap: 24px; margin: 18px 0; font-size: .85rem; color: var(--gray-600); }
.profile-stats span { font-weight: 800; color: var(--gray-800); font-size: 1.1rem; display: block; }

.agent-assign-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-200); flex-wrap: wrap; }
.agent-status { font-size: .82rem; color: var(--gray-600); }
.agent-username-input { border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 6px 10px; font-size: .8rem; width: 160px; }