/*
=================================================
  Smarlet - Master Stylesheet - FINAL VERSION
=================================================
1.  Variables & Global Styles
2.  Header, Navigation & Buttons
3.  Authentication Pages (Login/Register)
4.  Homepage (Hero, Search, Listings)
5.  Single Property Page (Gallery, Booking, Map)
6.  User Profile Page
7.  Footer
8.  Admin Panel Specifics
9.  Responsive Design
10. Modal, Chat, and Notification Styles
=================================================
*/

/* --- 1. Variables & Global Styles --- */
:root {
  --primary-color: #00796b; /* A sophisticated Teal */
  --secondary-color: #ffa726; /* A vibrant Orange/Gold */
  --dark-color: #263238; /* A deep, soft Charcoal */
  --light-color: #ffffff;
  --bg-color: #f7f9fa; /* A very light grey background */
  --text-color: #333333;
  --grey-text: #6c757d;
  --border-color: #e0e0e0;
  --font-family: "Poppins", sans-serif;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family);
  line-height: 1.7;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex-grow: 1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3, h4 {
  color: var(--dark-color);
  font-weight: 600;
  line-height: 1.3;
}
a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--secondary-color);
}
hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 30px 0;
}
img {
  max-width: 100%;
  height: auto;
}

/* --- 2. Header, Navigation & Buttons --- */
header {
  background: var(--light-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h1 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}
header nav .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
header nav .nav-links a {
  color: var(--grey-text);
  font-weight: 500;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  position: relative;
}
header nav .nav-links a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark-color);
}
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--dark-color);
}
.btn-secondary {
  background: var(--secondary-color);
  color: var(--light-color) !important;
  padding: 8px 18px;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  background-color: #fb8c00;
  transform: translateY(-2px);
}
.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background-color: #004d40;
}

/* --- 3. Authentication Pages (Login/Register) --- */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: calc(100vh - 160px); 
}
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  max-width: 900px;
  width: 100%;
  background: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}
.auth-image-panel {
  background: url("https://images.unsplash.com/photo-1522771739844-6a9f6d5f14af?auto=format&fit=crop&w=1351&q=80")
    no-repeat center center/cover;
  position: relative;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}
.auth-image-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
}
.auth-image-panel h2,
.auth-image-panel p {
  position: relative;
  z-index: 2;
  color: white;
}
.auth-image-panel p {
  font-size: 1.1rem;
  opacity: 0.9;
}
.auth-form-panel {
  padding: 40px;
}
.auth-form-panel h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--grey-text);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.2);
}
.auth-switch {
  margin-top: 20px;
  text-align: center;
  color: var(--grey-text);
}
.error {
  background: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}
.error p {
  margin: 0;
}

/* --- 4. Homepage (Hero, Search, Listings) --- */
.search-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914?auto=format&fit=crop&w=1350&q=80")
      no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 80px 20px 100px;
  position: relative;
}
.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--light-color);
}
#property-search-form {
  background: var(--light-color);
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr 1.5fr auto;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 1000px;
  width: 100%;
  margin: 40px auto -80px;
  position: relative;
  z-index: 10;
}
.search-input-group {
  padding: 15px 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.search-input-group:not(:last-child) {
  border-right: 1px solid var(--border-color);
}
.search-input-group label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--dark-color);
  margin-bottom: 2px;
}
.search-input-group label i {
  margin-right: 5px;
  color: var(--grey-text);
}
.search-input-group select,
.search-input-group input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  color: var(--grey-text);
  padding: 2px 0;
}
.search-input-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.search-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 0 25px;
  margin: 10px;
}
.search-btn:hover {
  background: #fb8c00;
  transform: scale(1.05);
}
.search-btn span {
  display: none;
}
.page-content-no-sidebar {
  padding-top: 100px;
}
.property-listings h2 {
    margin-bottom: 30px;
}
.property-listings .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}
.card {
  background: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-content .location {
  color: var(--grey-text);
  margin-bottom: 10px;
}
.card-content .details {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}
.card-content .details i {
  margin-right: 5px;
}
.card-content .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: auto;
  margin-bottom: 15px;
}
.no-results {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  color: #e65100;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  grid-column: 1 / -1;
}

/* --- 5. Single Property Page (Gallery, Booking, Map) --- */
.property-gallery-container {
  margin-bottom: 40px;
}
.property-gallery {
  width: 100%;
  height: 550px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #eee;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--secondary-color) !important;
  transition: transform 0.2s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  transform: scale(1.1);
}
.swiper-pagination-bullet-active {
  background: var(--secondary-color) !important;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#map {
  height: 400px;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 1;
  margin-top: 20px;
}
.amenities-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.amenities-list li {
  padding-left: 25px;
  position: relative;
}
.amenities-list li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}
.booking-box {
  background: var(--light-color);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* --- 6. User Profile Page --- */
.profile-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.profile-main-content {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.profile-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}
.profile-sidebar h4 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}
#profile-map {
  height: 450px;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background-color: #e9e9e9;
}
.booking-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}
.booking-item:last-child {
  border-bottom: none;
}
.booking-item img {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--border-radius);
  flex-shrink: 0;
}
.booking-details {
  flex-grow: 1;
}
.booking-details h4 {
  margin-bottom: 10px;
}
.booking-details p {
  margin-bottom: 5px;
}
.booking-details .btn-secondary {
    margin-top: 10px;
}
[class*="status-"] {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light-color);
  text-transform: capitalize;
}
.status-pending-payment { background-color: #f57c00; }
.status-pending { background-color: #f57c00; }
.status-awaiting-payment-proof { background-color: #1976d2; }
.status-confirmed { background-color: #388e3c; }
.status-cancelled { background-color: #d32f2f; }

/* --- 7. Footer --- */
.site-footer {
  background-color: var(--dark-color);
  color: #a9b3bb;
  padding: 60px 0 0;
  margin-top: 50px;
  font-size: 0.95rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-column h3, .footer-column h4 {
  color: var(--light-color);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-column.about p {
  line-height: 1.8;
}
.footer-column.links ul, .footer-column.contact-info ul {
  list-style: none;
  padding: 0;
}
.footer-column.links ul li {
  margin-bottom: 10px;
}
.footer-column.links ul li a {
  color: #a9b3bb;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-column.links ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}
.footer-column.contact-info ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}
.footer-column.contact-info ul li i {
  margin-top: 5px;
  margin-right: 15px;
  color: var(--secondary-color);
  width: 20px;
  text-align: center;
}
.footer-column.contact-info ul li a {
  color: #a9b3bb;
}
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid #3a4750;
  text-align: center;
  padding: 20px 0;
}
.footer-bottom p {
  margin: 5px 0;
  font-size: 0.9rem;
}
.designer-credit {
  color: #888;
  font-size: 0.8rem;
}

/* --- 8. Admin Panel Specifics --- */
.admin-body { background-color: #f4f6f9; }
.admin-sidebar {
  width: 260px;
  background: var(--dark-color);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1001; 
  transition: left 0.3s ease-in-out;
}
.admin-sidebar .sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #4b545c;
}
.admin-sidebar .sidebar-header h3 { color: white; margin: 0; font-size: 1.5rem; }
.admin-sidebar .sidebar-nav { list-style: none; padding: 0; margin: 20px 0; }
.admin-sidebar .sidebar-nav a {
  display: flex;
  align-items: center;
  color: #c2c7d0;
  padding: 15px 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}
.admin-sidebar .sidebar-nav a i { margin-right: 15px; width: 20px; font-size: 1.1rem; }
.admin-sidebar .sidebar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}
.admin-sidebar .sidebar-nav a.active {
  background-color: var(--primary-color);
  color: white;
}
.admin-main-content {
  margin-left: 260px;
  padding: 30px;
  transition: margin-left 0.3s ease-in-out;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.admin-header h2 { color: var(--dark-color); font-size: 2rem; }
.message-success, .message-error {
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.message-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.message-error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.summary-card {
  background: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.summary-card h3 { margin-top: 0; color: var(--grey-text); font-size: 1rem; }
.summary-card p { font-size: 2.5rem; font-weight: 600; color: var(--dark-color); margin: 10px 0; }
.summary-card a { color: var(--primary-color); font-weight: 500; text-decoration: none; }
.summary-card a:hover { text-decoration: underline; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  font-size: 0.95rem;
}
.admin-table th, .admin-table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
  vertical-align: middle;
}
.admin-table thead th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--grey-text);
  text-transform: uppercase;
  font-size: 0.85rem;
}
.admin-table tbody tr:hover { background-color: #f1f3f5; }
.admin-table img { width: 120px; height: 80px; object-fit: cover; border-radius: 5px; }
.action-links { white-space: nowrap; }
.action-links a, .action-links button { margin-right: 10px; font-size: 0.9rem;}
.action-edit { color: var(--primary-color); }
.action-cancel { color: #c0392b; }
.action-view-proof { color: #1976d2; }
.btn-chat {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
}
.admin-filter-form {
  display: flex;
  gap: 15px;
  align-items: center;
  background-color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.admin-filter-form .filter-group { display: flex; align-items: center; gap: 10px; }
.admin-filter-form select, .admin-filter-form input { padding: 8px; border: 1px solid var(--border-color); border-radius: 4px; }
.admin-filter-form .clear-filters { margin-left: auto; font-size: 0.9rem; color: var(--grey-text); }
.image-management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 10px;
  padding: 15px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}
.image-card { border: 1px solid #ccc; border-radius: var(--border-radius); overflow: hidden; }
.image-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.image-card .image-actions { padding: 10px; background: #f1f1f1; font-size: 0.9rem; }
.image-card label { display: block; margin-bottom: 5px; cursor: pointer; }
.image-card .delete-label { color: #c0392b; }
.admin-menu-toggle-btn {
    display: none;
}


/* --- 9. Responsive Design --- */
@media (max-width: 992px) {
  #property-search-form {
    grid-template-columns: 1fr;
    border-radius: var(--border-radius);
    margin: 30px auto;
    padding: 10px;
  }
  .search-input-group:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .search-btn {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 15px;
    border-radius: var(--border-radius);
  }
  .search-btn span { display: inline; margin-left: 10px; }
  .page-content-no-sidebar { padding-top: 40px; }
  .amenities-list, .property-info-container, .profile-container { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; margin-top: 40px; }
  
  .admin-sidebar { left: -260px; }
  .admin-sidebar.show { left: 0; }
  .admin-main-content { margin-left: 0; }
  .admin-header h2 { font-size: 1.5rem; }
  .admin-menu-toggle-btn { 
    display: block; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--dark-color);
  }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { margin-bottom: 15px; }
  .admin-table td { text-align: right; position: relative; padding-left: 50%; border-bottom: 1px solid #eee; }
  .admin-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}

@media (max-width: 768px) {
  .logo h1 { font-size: 1.5rem; }
  header nav .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 75px; left: 0; width: 100%;
    background: var(--light-color); box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 20px; gap: 20px;
  }
  header nav .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .hero-content h2 { font-size: 2rem; }
  .property-gallery { height: 300px; }
  .auth-container { grid-template-columns: 1fr; }
  .auth-image-panel { display: none; }
  .payment-options { grid-template-columns: 1fr; }
}

/* --- 10. Modal, Chat, and Notification Styles --- */
.modal {
  display: none; position: fixed; z-index: 2000; left: 0; top: 0;
  width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-content {
  position: relative; background-color: #fefefe; margin: auto; padding: 30px;
  border: 1px solid #888; width: 90%; max-width: 600px;
  border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s; display: flex; flex-direction: column;
}
.close-btn {
  color: #aaa; position: absolute; top: 10px; right: 20px;
  font-size: 28px; font-weight: bold;
}
.close-btn:hover, .close-btn:focus { color: black; text-decoration: none; cursor: pointer; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#chat-modal-title { margin-bottom: 20px; }
.chat-history {
  height: 350px; max-height: 60vh; overflow-y: auto; border: 1px solid var(--border-color);
  padding: 15px; margin-bottom: 15px; background-color: #f7f9fa;
  border-radius: var(--border-radius); display: flex; flex-direction: column;
}
.chat-message { margin-bottom: 15px; display: flex; flex-direction: column; max-width: 85%; }
.chat-message p {
  padding: 10px 15px;
  border-radius: 20px; line-height: 1.4; word-wrap: break-word; margin: 0;
}
.chat-message small { font-size: 0.75rem; color: var(--grey-text); margin-top: 4px; }

/* Message from the person currently logged in (user OR admin) - ALIGNS RIGHT, TEAL COLOR */
.chat-message.is-user { align-items: flex-end; align-self: flex-end; }
.chat-message.is-user p { background: var(--primary-color); color: white; }
.chat-message.is-user small { align-self: flex-end; }

/* Message from the OTHER person - ALIGNS LEFT, GREY COLOR */
.chat-message.is-admin { align-items: flex-start; align-self: flex-start; }
.chat-message.is-admin p { background: #e9e9eb; color: #333; }
.chat-message.is-admin small { align-self: flex-start; }

.chat-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border-color);
  border-radius: var(--border-radius); font-family: var(--font-family);
  resize: vertical; min-height: 60px;
}

.notification-badge {
  background-color: #f44336; color: white; border-radius: 50%;
  padding: 2px 7px; font-size: 0.7rem; font-weight: 700;
  margin-left: 5px; vertical-align: super; line-height: 1;
}
.admin-table tr.has-unread-message {
  background-color: #fff9e6; border-left: 4px solid #ffa726;
}
.admin-table tr.has-unread-message:hover { background-color: #fff3d4 !important; }
.booking-details .new-message-badge {
  display: inline-block; background-color: var(--secondary-color); color: white;
  padding: 3px 10px; border-radius: 15px; font-size: 0.8rem;
  font-weight: 600; margin-left: 10px;
}