﻿* {
  margin: 0;
  padding: 0;
  text-shadow: none;
  box-sizing: border-box;
}

#dynamicModal {
  z-index: 1060 !important;
  /* cao hơn bootstrap modal mặc định */
}

:root {
  --primary-color: #C0392B;
  --secondary-color: #eeeeee;
  --third-color: #d02028;
  --white-color: white;
  --black-color: black;
  --yellow-color: #FFD700;
  --light-gray-color: #f9f9f9;
  --gray-color: #ddd;
}

a {
  text-decoration: none;
}

html,
body {
  height: 100%;
  padding-top: 19px;
}


/* Login CSS - phuonghh - START*/
#terms {
  width: 10px;
  height: 15px;
}

.form-check-label {
  align-content: center;
  padding-left: 5px;
}

.register-background {
  background-color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-background {
  min-height: 100vh;
  padding: 15px;
}

.login-logo img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
}

@media (max-width: 767.98px) {
  .login-logo {
    margin-bottom: 20px;
  }
}

/* .login-background {
  background-color: var(--white-color);
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
} */

.register-container,
.login-container {
  display: flex;
  width: 852px;
  max-height: fit-content;
  padding: 30px 0px;
}

.register-container {
  background-color: white;
}

.register-block,
.login-block {
  margin: auto;
  align-content: center;
}

.register-block button,
.login-block button {
  width: 100%;
  border-radius: 0px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  margin-top: 10px;
  padding: 10px 0;
}

.register-block button:hover,
.login-block button:hover {
  background-color: var(--primary-color);
}

.register-block input,
.login-block input {
  height: auto;
  color: #222;
  padding: 17px 20px;
  border: 1px solid var(--secondary-color);
  margin: 10px 0;
  width: 100%;
}

.register-block input:focus,
.login-block input:focus {
  outline: none;
  border: 1px solid #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.register-footer,
.login-footer {
  padding: 10px 0;
}

.register-footer a,
.login-footer a {
  text-decoration: none;
  margin: 20px 0;
}

/* Login CSS - phuonghh - END */
.footer p,
.footer h5,
.footer li {
  margin: 0;
}

/* Sieu Blog css _Start */
.carousel-card {
  width: 220px;
  height: 270px;
  /* tăng chiều cao để đủ cho ảnh + text */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  border-radius: 16px;
  margin: 0 10px;
  padding: 16px 8px 8px 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.carousel-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f3f3;
  margin-bottom: 8px;
  display: block;
  flex-shrink: 0;
}

.carousel-card p {
  text-align: center;
  font-size: 18px;
  color: #222;
  margin: 0;
  word-break: break-word;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
  flex-grow: 1;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.keywords {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
}

.keywords a {
  margin: 5px;
  display: inline-block;
}

.blog-container {
  margin: 20px auto;
  padding: 20px;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-container img {
  width: 100%;
  height: 80% !important;
  border-radius: 8px;
}

h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.blog-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.blog-item img {
  width: 150px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 20px;
}

.blog-content h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #333;
}

.blog-content p {
  font-size: 14px;
  margin: 0 0 5px;
  color: #555;
}

.blog-content p:first-of-type {
  font-size: 12px;
  color: #999;
}

.see-more {
  display: block;
  text-align: right;
  color: #b32424;
  font-weight: bold;
  margin-top: 20px;
  text-decoration: none;
}

.see-more:hover {
  text-decoration: underline;
}

.d-flex img {
  max-width: 700px;
}

.rating {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 18px;
  color: #f39c12;
  /* Màu vàng cho sao */
}

.rating .star {
  margin-right: 2px;
}

.rating span:last-child {
  font-size: 14px;
  color: #555;
  margin-left: 8px;
}

.all-container {
  margin-top: 15px;
}

body {
  background-color: #f6f6f6;
}

.table td,
.table th {
  text-align: center;
  vertical-align: middle;
}

.btn-warning:hover {
  background-color: #d8431f !important;
}

body {
  background-color: var(--white-color);
}

.table td,
.table th {
  vertical-align: middle;
}

.form-control-sm {
  max-width: 80px;
}

.btn-danger {
  background-color: #ee4d2d;
  border-color: #ee4d2d;
}

.btn-danger:hover {
  background-color: #d84320;
  border-color: #d84320;
}

.quantity-input {
  min-width: 55px;
  max-width: 70px;
  padding-left: 4px;
  padding-right: 4px;
}

.fixed-username {
  display: inline-block;
  width: 140px;
  /* 👈 khung cố định */
  height: 36px;
  /* hoặc line-height + padding nếu thích */
  line-height: 36px;
  /* căn giữa dọc */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  background-color: transparent;
  /* tuỳ bạn muốn có nền hay không */
}

/* 🔘 Nút chat trên thanh menu */
.chat-menu-icon {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  position: relative;
}

.chat-menu-icon:hover {
  background-color: white;
  color: #c0392b;
  border-radius: 4px;
}

/* 📋 Danh sách đoạn chat */
.chat-list-panel {
  position: absolute;
  top: 100%;
  right: 10px;
  width: 320px;
  background: #242526;
  color: #E4E6EB;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.chat-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 1px solid #3A3B3C;
  background: #2b2c2f;
}

.chat-list-header button {
  background: none;
  border: none;
  color: #E4E6EB;
  font-size: 20px;
  cursor: pointer;
}

.chat-list-body {
  max-height: 450px;
  overflow-y: auto;
  background: #242526;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:hover {
  background: #3A3B3C;
}

.chat-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-item .info {
  flex: 1;
}

.chat-item .info .name {
  font-weight: bold;
  font-size: 14px;
  color: white;
}

.chat-item .info .last-message {
  font-size: 12px;
  color: #B0B3B8;
}

/* 💬 Khung chat mini */
.chat-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 350px;
  background: #f0f2f5;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.chat-hidden {
  display: none !important;
}

.chat-header {
  background: #ed1d20 !important;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.chat-content div {
  margin-bottom: 6px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
  background: #f9f9f9;
}

.chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

.chat-input button {
  background: #ed1d20;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
}

#chat-content {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  background-color: white;
  flex: 1;
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  display: inline-block;
}

.chat-bubble.me {
  background-color: #ed1d20;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.you {
  background-color: #e4e6eb;
  color: black;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.dot-online,
.dot-offline {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.dot-online {
  background-color: #31a24c;
}

.dot-offline {
  background-color: #bbb;
}

#chat-user-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  margin-right: auto;
  border-radius: 50%;
  vertical-align: middle;
}

/* 🔍 Ô tìm kiếm */
.chat-search-box {
  border-bottom: 1px solid #ddd;
  background-color: #f9f9f9;
}

/* 📋 Danh sách gợi ý bạn bè */
.chat-search-box {
  background: #2b2d2f !important;
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 18px 16px 12px 16px;
  box-shadow: 0 3px 16px 0 rgba(30, 30, 30, 0.10);
  border: none !important;
}

#friend-search-input {
  width: calc(100% - 4px);
  height: 44px;
  border-radius: 18px !important;
  border: 2px solid #fff !important;
  background: #232526 !important;
  font-size: 18px !important;
  color: #fff !important;
  font-weight: 500;
  padding: 9px 18px 9px 18px;
  margin-bottom: 10px;
  margin-left: 2px;
  margin-right: 2px;
  outline: none;
  box-shadow: none;
  transition: border 0.18s, background 0.18s;
  background-image: url('data:image/svg+xml;utf8,<svg width="22" height="22" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="8" stroke="white" stroke-width="2"/><path d="M18 18l-4-4" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 24px 24px;
  box-sizing: border-box;
}

#friend-search-input::placeholder {
  color: #fff !important;
  opacity: 0.78;
}

#friend-search-input:focus {
  border-color: #fff !important;
  background: #18191A !important;
  color: #fff !important;
}

.search-result-list {
  background: #2b2d2f !important;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(192, 57, 43, 0.13);
  max-height: 220px;
  overflow-y: auto;
  padding: 5px 0 4px 0;
  margin-bottom: 0;
}

.search-result-item {
  background: #232526 !important;
  border-radius: 10px !important;
  border: 1.5px solid #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  margin-bottom: 11px;
  transition: background 0.16s, border 0.16s;
}

.search-result-item:hover {
  background: #222 !important;
  border-color: #fff !important;
}

.search-result-item b,
.search-result-item .name {
  font-weight: 600;
  color: #fff !important;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.search-result-item small {
  color: #ccc !important;
  font-size: 13px;
  display: block;
}

.search-result-item button {
  border-radius: 18px !important;
  min-width: 85px;
  padding: 6px 15px;
  font-size: 15px;
  background: #18191A !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  font-weight: 500;
  transition: all 0.16s;
}

.search-result-item button:hover:not([disabled]) {
  background: #fff !important;
  color: #18191A !important;
  border-color: #fff !important;
}

.search-result-item button:disabled {
  background: #232526 !important;
  color: #666 !important;
  border-color: #333 !important;
}

.search-result-item .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-result-item .info .name {
  font-weight: bold;
  color: #fff !important;
  font-size: 16px;
  margin-bottom: 2px;
}

.search-result-item .info small {
  color: #ccc !important;
  font-size: 13px;
}

.chat-item.has-new-message {
  position: relative;
}

#chat-icon-btn.has-unread::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: yellow;
  /* hoặc white / green cho dễ test */
  border-radius: 50%;
  box-shadow: 0 0 2px black;
  z-index: 10;
}

#chat-icon-btn {
  position: relative;
}

.chat-item.has-new-message::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50px;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  z-index: 5;
}

.chat-item {
  position: relative;
}

.video-call-popup {
  position: fixed;
  top: 50px;
  left: 10%;
  width: 80%;
  height: 80%;
  background: #000;
  z-index: 5000;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
}

.video-call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 6px 10px;
  background: #222;
  border-bottom: 1px solid #555;
}

.video-call-body {
  flex: 1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
}

.video-call-body video {
  width: 48%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid white;
}

.popup {
  color: white;
  text-align: center;
  padding: 12px;
  margin-top: 8px;
  background: #333;
  border-radius: 8px;
}

.d-none {
  display: none !important;
}

/* Nút gọi video */
.btn-call {
  background-color: #5a9bf6;
  border: none;
  color: white;
  padding: 4px 8px;
  margin-right: 8px;
  border-radius: 5px;
  font-size: 16px;
  transition: 0.2s ease;
}

.btn-call:hover {
  background-color: #3d7edb;
}

.chat-tab-header {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #444;
  padding-bottom: 6px;
  margin-top: -4px;
}

.btn-tab {
  flex: 1;
  background-color: transparent;
  border: none;
  padding: 8px 12px;
  font-weight: 500;
  color: #ddd;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: 6px;
}

.btn-tab:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-tab.active {
  background-color: #ffffff0f;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #6c757dde;
}

.chat-ro-box {
  width: 300px;
  position: fixed;
  bottom: 80px;
  right: 340px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.chat-ro-header {
  padding: 8px;
  background: #d02028;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-ro-content {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  background-color: white;
  flex: 1;
}
#chat-content-ro {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    overflow-y: auto;
    background-color: white;
    flex: 1;
}


.chat-ro-input {
  display: flex;
  border-top: 1px solid #ccc;
  background: #f9f9f9;
}

.chat-ro-input input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

.chat-ro-input button {
  background: #d02028;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 0 6px 6px 0;
  height: 100%;
}

.chat-ro-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  display: inline-block;
}

.chat-bubble.ro-me {
    background-color: #ed1d20;
    color: white;
    align-self: flex-end;
    border-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-bottom-right-radius: 4px;
    max-width: 70%;
}

.chat-bubble.ro-you {
    background-color: #e4e6eb;
    color: black;
    align-self: flex-start;
    border-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 6px;
    border-bottom-left-radius: 4px;
    max-width: 70%;
}

#chat-box-resowner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 350px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
.chat-bubble span {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    white-space: pre-wrap;
}
.not-friend-warning {
    background: #ffeeba;
    color: #856404;
    font-size: 13px;
    border-radius: 10px;
    margin: 8px 0;
    padding: 4px 12px;
    display: inline-block;
}
.d-none {
    display: none !important;
}

/* sieu Blog css _end */






/* ------------VanKhoi_Start_Css----------- */
/* van khoi --header css  */
.header-wrapper {
  max-width: 100%;
  padding: 0 90px;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--primary-color);
  color: var(--black-color);
  position: auto;
  margin-bottom: 100px;
}

.logo-text {
  font-size: 25px;
  font-weight: bold;
  color: var(--white-color);
  text-decoration: none;
  margin-right: 20px;
  margin-left: 100px;
}

.navbar {
  color: var(--black-color);
  padding: 0px;
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .btn {
  color: var(--white-color);
  font-size: 18;
}

.nav-link {
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.navbar .nav-link:hover {
  background-color: white;
  color: #c0392b;
  border-radius: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
}


.login-section {
  margin: 0px 40px;
}


/* van khoi --footer  */
.footer-wrapper {
  max-width: 100%;
  padding: 0 90px;
  background-color: var(--white-color);
  justify-content: space-around;
}

.footer-wrapper a,
.footer-wrapper h3 {
  color: gray;
}

.footer-wrapper a:hover {
  color: #ddd !important;
}

.search-section {
  margin-top: 50px;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f8f9fa;
  padding: 5px;
  width: 100%;
  margin-top: 50px;
}

.search-bar select,
.search-bar input {
  border: none;
  outline: none;
  background: transparent;
}

.search-bar select {
  width: auto;
  padding: 5px;
  font-size: 14px;
}

.search-bar input {
  flex-grow: 1;
  padding: 5px;
  font-size: 14px;
}

.search-bar button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 5px 15px;
  border-radius: 3px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: bold;
  margin-left: 20px;
  margin-top: 50px;
}

.yellow-bg--banner {
  background-color: var(--primary-color);
  padding: 2rem;
  border-radius: 10px;
  color: var(--white-color);
}

.image-container--banner img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.btn-custom--banner {
  background-color: #fff;
  color: #000;
  font-weight: bold;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  border: none;
  transition: 0.3s;
}

.btn-custom--banner:hover {
  background-color: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .search-bar {
    flex-grow: 1;
  }

  .search-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .phone-number {
    justify-content: center;
  }
}

/* ------------VanKhoi_End_Css----------- */




/* Restaurant - Thang _ START */
.restaurant-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-items: center;
  margin-top: 30px;
  margin-bottom: 30px;
  gap: 20px;
}

.no-result-restaurant {
  color: #888;
  font-style: italic;
  margin-top: 80px;
  text-align: center;
  font-size: 30px;
}

.search-address {
  background-color: #C0392B;
  color: white;
  width: 80%;

  /* Ẩn mũi tên gốc */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Thêm mũi tên SVG màu trắng */
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2rem;
  /* để chữ không đè icon */
}

.search-input {
  border: 2px solid #C0392B;
  color: inherit;
  transition: all 0.2s ease-in-out;
  outline: none;
}

.search-address option:hover {
  background-color: white;
  color: var(--primary-color);
}

.search-input:focus {
  color: #C0392B;
  box-shadow: none;
  outline: none;
}

.clear-input {
  position: absolute;
  top: 50%;
  right: 15px;
  /* chỉnh vị trí tùy ý */
  transform: translateY(-50%);
  font-size: 20px;
  color: #999;
  cursor: pointer;
  display: none;
  /* ẩn ban đầu nếu không có text */
}

.clear-input:hover {
  color: #333;
}

/* Giữ margin-left + màu + border cho nút */
.search-btn {
  background-color: #C0392B;
  color: white;
  border: none;
}

/* Phone icon & number */
.phone-icon {
  color: #C0392B;
  font-size: 24px;
}

.phone-number {
  font-weight: bold;
  font-size: 20px;
  color: #C0392B;
}

/* Autocomplete box */
.autocomplete-suggestions {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  z-index: 1000;
  display: none;
}

.suggestion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suggestion-list li {
  padding: 8px 16px;
  cursor: pointer;
}

.suggestion-list li:hover {
  background: #f5f5f5;
}

.suggestion-list a {
  text-decoration: none;
  color: #333;
  display: block;
}

.restaurant-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 300px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.restaurant-card:hover {
  transform: translateY(-5px);
}

.restaurant-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.restaurant-content {
  padding: 15px;
}

.restaurant-name {
  font-size: 20px !important;
  font-weight: bold;
  color: #000000;
}


.restaurant-address {
  font-size: 14px;
  color: #000000;
  margin: 10px 0;
}

.restaurant-info {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

.rating {
  color: #f39c12;
  font-size: 14px;
}

.price {
  font-size: 14px;
  color: #27ae60;
  margin: 10px 0;
}

.restaurant-type {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.btn-book {
  display: block;
  width: 90%;
  padding: 10px;
  background-color: #e74c3c;
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 0 auto;
}

.btn-book:hover {
  background-color: #c0392b;
}

/* Restaurant - END - Thang  */


/* Restaurant Details - Start - Thang */
.container {
  display: inline-flexbox;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.carousel-container,
.info-container {
  flex: 1;
  max-width: 50%;
  padding: 20px;
}

.carousel img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

/* .booking-container {
  width: 900px;
} */

/* Style mặc định */
.nav-link-restaurant-details {
  text-decoration: none;
  position: relative;
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 4px;
  padding: 8px 12px;
  margin: 2px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-link-restaurant-details:hover,
.nav-link-restaurant-details:focus,
.nav-link-restaurant-details.active {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.restaurant-detail-name {
  font-size: 40px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.restaurant-detail-address {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1rem;
}

.restaurant-detail-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.restaurant-detail-rating {
  color: #F39C12;
  font-size: 1.2rem;
}

.restaurant-detail-fee {
  color: var(--primary-color);
  font-weight: 500;
}

.restaurant-detail-content {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
}

/* Restaurant Details - End - Thang */


/* Profile_header - Start - Thang */
.profile-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-right: 100px;
}

.profile-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 18px;
  color: var(--white-color);
}

.guest-text {
  cursor: pointer;
  color: var(--white-color);
  font-size: 20px;
  margin-right: 40px;
}

.guest-text:hover {
  text-decoration: underline;
}

.profile-dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  background: white;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  width: 200px;
  display: none;
  padding: 10px;
  z-index: 999;
}

.profile-dropdown a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: black;
  font-size: 14px;
}

.profile-dropdown a:hover {
  text-decoration: underline;
}

/* Profile_header - End - Thang */



/*Profile - Start - Thang */
.container-profile {
  height: fit-content;
  display: flex;
  align-items: center;
}

.sidebar {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.menu-item {
  padding: 8px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.menu-item:hover {
  background: var(--primary-color);
  ;
  color: white;
}

.profile-container_form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  width: 100%;
  text-align: center;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  margin: 0 auto 20px;
}

.profile-pic input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.form-group label {
  font-size: 14px;
  width: 140px;
  font-weight: bold;
}

.form-group input {
  flex: 1;
  background: #f9f9f9;
  outline: none;
}

.form-group input:focus {
  background: #fff;
  border-color: #b32424;
}

/* Add Css - Phuonghh - Start */
.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}

.profile-info:hover {
  background: #f8f8f8;
}

.profile-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #b32424;
}

.profile-username {
  font-size: 18px;
  font-weight: bold;
  color: #b32424;
  margin: 0;
}

.profile-icon {
  display: flex;
  align-items: center;
  position: relative;
}

.dropdown-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.list-dropdown {
  display: none;
  top: 40px;
  position: absolute;
  transform: translateX(-46%);
  background: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  min-width: 180px;
  z-index: 1000;
}

.list-dropdown .menu-item {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.list-dropdown .menu-item:hover {
  background: #b32424;
  color: white;
}



/* Add Css - Phuonghh - End */

/*Profile - Start - Thang */
/*Register - Start - Khoi */
.register-form-group {
  display: block;
}

.login-block {
  border-radius: 10px;
  padding: 30px;
  background-color: white;
}

/*Register - End - Khoi */
/*View and Search Food - Start - Khoi */
.banner-food {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner-food::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* Overlay */
  z-index: 1;
}

.banner-food .banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.banner-food h1 {
  font-size: 3rem;
  font-family: 'Segoe UI', sans-serif;
}


/* Menu Filter */
.filter-food {
  margin: 2rem 0;
  text-align: center;
}

.filter-food .btn-food {
  margin: 0 .5rem;
  border-radius: 50px;
}

/* Food Cards */
.card-food {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s ease;
}

.card-food:hover {
  transform: translateY(-5px);
}

.card-food .card-body {
  background: #212529;
  color: #fff;
}

.card-food .card-body h5 {
  font-size: 1.25rem;
}

.card-food .card-img-top {
  height: 200px;
  object-fit: cover;
}

.btn-order-food {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.btn-order-food:hover {
  background-color: #ffb300;
}

/*View and Search Food - End - Khoi */

/* Post index - Start - Thang */
.post {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 15px;
  display: inline-block;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.username {
  font-weight: bold;
}

.post-content {
  margin-bottom: 10px;
}

.post-image-thumb {
  border-radius: 8px;
}

.actions {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  color: #65676b;
  cursor: pointer;
}

.actions span:hover {
  text-decoration: underline;
}

.comments {
  margin-top: 10px;
}

.comment {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.comment:last-child {
  border-bottom: none;
}

.comment-text {
  word-break: break-word;
  white-space: pre-wrap;
}

/* Custom dropdown edit/delete post */
.custom-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.custom-dropdown-menu {
  position: absolute;
  width: max-content;
  right: 0;
  top: calc(100% + 4px);
  background-color: #fff;
  border-radius: 6px;
  z-index: 1056;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.custom-dropdown-menu .dropdown-item {
  padding: 8px 12px;
  display: block;
  color: #333;
  text-decoration: none;
}

.custom-dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
}

.d-none {
  display: none !important;
}

/* Create post modal */
.create-post {
  max-width: 700px;
}

.create-post .modal-content {
  border-radius: 12px;
  padding: 16px;
  scrollbar-width: none;
}

.create-post .modal-header {
  background: white;
  color: black;
}


.create-post #dynamicModalLabel {
  font-weight: bold;
  font-size: 20px;
}

.create-post .avatar-img {
  width: 40px;
  height: 40px;
}

/* .create-post .add-image-box {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  height: 250px;
}

.create-post .add-image-box:hover {
  border-color: #4CAF50;
  color: #4CAF50;
  background: #f9f9f9;
}

.create-post .add-image-box i {
  display: block;
  margin-bottom: 10px;
  font-size: 32px;
  color: inherit;
}

.create-post .add-image-box span {
  font-weight: 500;
  font-size: 16px;
}

.create-post .image-preview {
  position: relative;
  margin-top: 10px;
  display: none;
}

.create-post .image-preview img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.create-post .image-preview button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 20px;
} */
*/
/* Post index - End - Thang */

/* food detail - Start - Khoi  */
.img-banner-food-details {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.title-food-details {
  font-size: 2.5rem;
}

.fs-5-food-details {
  font-size: 1.25rem;
}

.fs-4-food-details {
  font-size: 1.5rem;
}

.btn-order-food-details {
  background-color: var(--primary-color);
  border: none;
  color: var(--white-color);
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-order-food-details:hover {
  background-color: #ffb300;
}

/* food detail - End - Khoi  */
.fs-4-food-details {
  font-size: 1.5rem;
}

.btn-order-food-details {
  background-color: var(--primary-color);
  border: none;
  color: var(--white-color);
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-order-food-details:hover {
  background-color: #ffb300;
}

.res-wrap {
  margin-top: 50px;
}

/* food detail - End - Khoi  */
.fs-4-food-details {
  font-size: 1.5rem;
}

.btn-order-food-details {
  background-color: var(--primary-color);
  border: none;
  color: var(--white-color);
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-order-food-details:hover {
  background-color: #ffb300;
}

.res-wrap {
  margin-top: 50px;
}

.container-food-details {
  margin-top: 50px;
}

.restaurant-group {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* food detail - End - Khoi  */




/* Order Detail Page - Start - Thanh */
.order-detail-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 32px 32px 24px 32px;
  max-width: 540px;
  margin: 0 auto 32px auto;
  font-size: 1rem;
}

.order-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.order-timestamp {
  font-size: 0.98rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.restaurant-info {
  gap: 10px;
}

.restaurant-name {
  font-size: 1.15rem;
  color: var(--primary-color);
}

.address-section {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.address-row {
  font-size: 1rem;
  gap: 6px;
}

.summary-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.order-items li {
  font-size: 1rem;
  border-bottom: 1px dashed #eee;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.order-items li:last-child {
  border-bottom: none;
}

.order-totals {
  font-size: 1rem;
}

.order-totals .total-row {
  font-size: 1.15rem;
}

.order-totals .text-success {
  font-weight: 500;
}

.order-cta .contact-btn {
  background: var(--primary-color);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.08);
  transition: background 0.2s;
}

.order-cta .contact-btn:hover {
  background: #ffb300;
  color: #fff;
}

@media (max-width: 600px) {
  .order-detail-container {
    padding: 16px 4px 16px 4px;
    max-width: 100%;
  }

  .order-header,
  .address-section,
  .order-summary-section {
    padding-left: 0;
    padding-right: 0;
  }

  .order-cta .contact-btn {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Order Detail Page - End - Thanh */
/* TRACKING DELIVERY - Start - Thanh */
.order-status-nav {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 10px;
}

.order-status-tabs .nav-link {
  color: var(--primary-color);
  font-weight: 500;
  border: none;
  border-radius: 20px 20px 0 0;
  background: #f9f9f9;
  margin: 0 2px;
  transition: background 0.2s, color 0.2s;

}



.order-status-tabs .nav-link.active,
.order-status-tabs .nav-link:hover {
  background: var(--primary-color);
  color: #fff;
}

.delivery-cards-container {
  max-height: 600px;
  overflow-y: auto;
}

.delivery-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.delivery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.delivery-card.card-hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Thêm vào file css của bạn */
.bg-orange {
  background-color: #fd7e14 !important;
  color: #fff !important;
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-preparing {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-delivering {
  background-color: #d4edda;
  color: #155724;
}

.status-delivered {
  background-color: #c3e6cb;
  color: #155724;
}

.status-cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.restaurant-info {
  margin-bottom: 20px;
}

.restaurant-name {
  color: #2c3e50;
  margin-bottom: 5px;
  font-weight: 600;
}

.order-date {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.order-items {
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-items.expanded {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  margin: 15px -15px;
}

.order-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f1f3f4;
}

.order-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  flex-shrink: 0;
}

.food-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.item-details {
  flex: 1;
}

.food-name {
  color: #2c3e50;
  margin-bottom: 5px;
  font-weight: 500;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6c757d;
}

.item-total {
  text-align: right;
  margin-left: 15px;
}

.total-price {
  font-weight: 600;
  color: #28a745;
}

.order-total {
  border-top: 2px solid #e9ecef;
  padding-top: 15px;
}

.total-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 16px;
}

.total-amount {
  font-weight: 700;
  color: #28a745;
  font-size: 18px;
}

.no-orders {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 15px;
}

.no-orders-icon {
  margin-bottom: 20px;
}

.no-orders-icon i {
  font-size: 48px;
  color: #dee2e6;
}

.no-orders h5 {
  margin-bottom: 10px;
  color: #495057;
}

.no-orders p {
  margin: 0;
  color: #6c757d;
}

.loading {
  text-align: center;
  padding: 40px;
}

.loading i {
  font-size: 24px;
  color: #007bff;
  animation: spin 1s linear infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .order-status-tabs {
    flex-wrap: wrap;
  }

  .order-status-tabs .nav-link {
    margin-bottom: 5px;
    font-size: 14px;
  }

  .restaurant-info {
    padding-right: 80px;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-image {
    margin-bottom: 10px;
  }

  .item-total {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* TRACKING DELIVERY - End - Thanh */
/* Res & ResOwner Panel - Start - Thang  */
.submenu {
  display: none;
}

.submenu .menu-item {
  border: none;
  padding-left: 25px;
  font-size: 0.95rem;
}

/* Res & ResOwner Panel - End - Thang  */
.menu-item.active {
  color: white;
  background-color: var(--primary-color);
  border-radius: 5px;
}

/* Res & ResOwner Panel - End - Thang  */
.form-textarea {
  width: 100%;
  font-size: 18px;
  line-height: 1.6;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 0;
  color: #212529; /* hoặc trắng nếu dùng dark mode */
}
/* Food and res Panel - Start - KhoiNV  */
.food-detail-img {
  border-radius: 0 !important;
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
  object-fit: cover;
}
.table-bordered > :not(caption) > * > * {
        border-color: #dc3545 !important; 
}
.table-bordered tbody tr:last-child td {
    border-bottom: 1px solid #dc3545 !important;
}
.star-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.star-icon:hover {
    transform: scale(1.2);
}
.star-icon.filled {
    font-weight: bold;
    color: #ffc107 !important;
}
