.navbar-brand img {
      width: 145px;
}

/* start of preference form area in home page */
.background-image {
      background-image: url('/frontend/images/bg.jpg');
      background-size: cover;
      background-position: center;
}

.preference_form button {
      margin-top: 32px;
      background-color: #9f1239;
      color: #fecdd3;
      border: #9f1239;
}

select[name="to_age"] {
      margin-top: 32px;
}

p.to {
      margin-top: 36px;
      text-align: center;
}

.preference_form {
      background-color: #000;
      opacity: 0.7;
      color: #fff;
      font-weight: 600;
      height: auto;
}

.form-control {
      border-left: 4px solid #f1556c !important;
}

/* end of preference form area in home page */

#showImg {
      width: 50px;
      border-radius: 50%;
      margin-top: 10px
}

/* user dashboard  */
.dashboard-profile img {
      width: 100px;
      margin: 0 auto;
}

.matched-profile img {
      width: 70px;
      margin: 0 auto;
}

/* start of chatting section style  */
/* Ensure the container fills the parent */
.chatting-section {
      height: 100vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
}

.friends-list {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
      background-color: #f7f7f7;
      border: 1px solid #ddd;
      border-radius: 5px;
}

.friends-list ul {
      list-style: none;
      margin: 0;
      padding: 0;
}

.friends-list li {
      margin-bottom: 10px;
}

.friends-list a {
      text-decoration: none;
      color: #333;
      font-size: 14px;
      display: block;
      padding: 10px;
      background-color: #fff;
      border-radius: 4px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.friends-list a:hover {
      background-color: #e9e9e9;
}

/* end of chatting section style  */

/*user details*/
img.butterfly {
      position: absolute;
      top: 0;
      left: 50px;
      width: 50px;
}

li.nav-item.dropdown.coupleuser {
      position: relative;
}


span.request-count {
      position: absolute;
      top: -5px;
      left: 5px;
      color: red;
}

li.dropdown-item.sender-image img {
      width: 35px;
      border-radius: 50%;
      float: left;
      margin-right: 5px;
}

li.dropdown-item.sender-image {
      width: 220px;
}

/* start of chatbox area  */
.chatbox {
      display: none;
      /* Hidden by default */
      position: fixed;
      bottom: 10px;
      right: 10px;
      width: 350px;
      background-color: white;
      border: 1px solid #ccc;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      overflow: hidden;
      animation: slideIn 0.3s ease-in-out;
}

.chatbox-header {
      display: flex;
      align-items: center;
      background-color: #007bff;
      color: white;
      padding: 10px;
      border-bottom: 1px solid #ccc;
}

.chatbox-header img {
      width: 30px !important;
      height: 30px;
      border-radius: 50%;
}

.chatbox-header h5 {
      margin: 0;
      margin-left: 10px;
      flex-grow: 1;
}

.chatbox-header .close-btn {
      font-size: 20px;
      font-weight: bold;
      cursor: pointer;
}

.chatbox-messages {
      height: 300px;
      overflow-y: auto;
      padding: 10px;
      background-color: #f9f9f9;
}

.chatbox-messages p {
      margin: 5px 0;
      padding: 10px;
      border-radius: 8px;
}

.chatbox-messages .sent {
      background-color: #007bff;
      color: white;
      text-align: left;
}

.chatbox-messages .received {
      background-color: #f1f1f1;
      color: black;
      text-align: left;
}

.chatbox-footer {
      display: flex;
      align-items: center;
      padding: 10px;
      border-top: 1px solid #ccc;
}

.chatbox-footer input {
      flex-grow: 1;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 5px;
}

.chatbox-footer button {
      margin-left: 10px;
      padding: 8px 12px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
}

.chatbox-footer button:hover {
      background-color: #0056b3;
}

@keyframes slideIn {
      from {
            opacity: 0;
            transform: translateY(20px);
      }

      to {
            opacity: 1;
            transform: translateY(0);
      }
}


/* for minimize  */
.chatbox.minimized {
      height: 50px;
      /* Reduced height */
      overflow: hidden;
      /* Hide the chatbox content */
}

.chatbox.minimized .chatbox-header {
      background-color: #007bff;
      color: white;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px;
      cursor: pointer;
}

.chatbox.minimized .chatbox-messages,
.chatbox.minimized .chatbox-footer {
      display: none;
      /* Hide messages and footer when minimized */
}

.minimize-btn {
      font-size: 18px;
      cursor: pointer;
      margin-right: 10px;
}

.minimize-btn:hover {
      color: #ccc;
}



/* below code for inside chatbox  */
.message-container {
      position: relative;
      padding: 5px;
      border-radius: 5px;
      margin-bottom: 5px;
      max-width: 70%;
      transition: background-color 0.3s ease;
      word-wrap: break-word;
}

/* Sender Message */
.sent {
      margin-left: auto;
      background-color: #d1f7c4;
      text-align: right;
}

/* Receiver Message */
.receiver-message {
      margin-right: auto;
      background-color: #f1f1f1;
      text-align: left;
}

/* Hidden Actions */
.message-actions {
      display: none;
      /* Hidden by default */
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
}

/* Position Icons Dynamically */
.actions-right {
      right: 10px;
      /* Icons on the right for sender */
}

.actions-left {
      left: 10px;
      /* Icons on the left for receiver */
}

/* Hover Effects */
.message-container:hover {
      background-color: #e6e6e6;
      /* Slight highlight on hover */
}

.message-container:hover .message-actions {
      display: inline-block;
      /* Display icons on hover */
}

.message-actions i {
      margin: 0 5px;
      cursor: pointer;
      color: #555;
      font-size: 16px;
      transition: color 0.3s ease;
}

.message-actions i:hover {
      color: #000;
      /* Change color on hover */
}


.receiver-message .message-actions.action-left {
      margin-left: 215px;
}

.receiver-message:hover .message-actions.action-left {
      display: flex;
}

span.message-actions.action-right {
      margin-left: -65px;
}


/**********************************************/
/* Start of Responsive Area  */
/**********************************************/
@media (min-width: 360px) and (max-width: 375px) {
      .logo-wrapper {
            margin-left: 90px;
      }

      img.butterfly {
            left: 28px;
      }
}

@media (min-width: 375px) and (max-width: 430px) {
      .logo-wrapper {
            margin-left: 100px;
      }

      img.butterfly {
            left: 30px;
      }

      select[name="to_age"] {
            margin-top: 0px;
      }

      p.to {
            margin-top: 0px;
      }

}

@media (min-width: 360px) and (max-width: 768px) {
      .navbar-brand img {
            margin: 0 auto;
      }

      .social-area ul li {
            margin: 0px auto;
      }

      .preference_form button {
            margin-bottom: 32px;
      }
}

@media (min-width: 768px) and (max-width: 853px) {
      .logo-wrapper {
            margin-left: 250px;
      }
}

/* need to currection next time maybe below code */
@media (min-width: 853px) {
      .background-image {
            height: 770px;
      }
}

/**********************************************/
/* End of Responsive Area  */
/**********************************************/