body {
    background: #f8f9fa;
    /* other styles... */
    display: flex;
    flex-direction: column;
}

/* .card-img-top {
    width: 100%;
    height: 15vw;
    object-fit: cover;
} */

.btn-primary {
    background: #0069d9;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* padding: 15px 30px;   */
    display: block;      /* This and the next line centers the button */
    margin: 0 auto;
}

.card .card-img-top {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 10px;
    cursor: pointer;
    transition: transform .2s;
}

.card .card-img-top:hover {
    transform: scale(1.1);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* padding: 20px; */
}

.btn-primary {
    background: #0069d9;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #0056b3;
}

.custom-text {
    /* height: 5em; */
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    font-size: 0.85em;
}

.navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.jumbotron {
    color: white;
    text-shadow: 2px 2px 4px rgba(255, 255, 255);
    background-size: cover;
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-footer {
    width: 100%;
    background: #343a40;
    color: #fff;
    text-align: center;
}



/**
 * FilePond Custom Styles
 */
 .filepond--drop-label {
	color: #4c4e53;
}

.filepond--label-action {
	text-decoration-color: #babdc0;
}

.filepond--panel-root {
	border-radius: 2em;
	background-color: #edf0f4;
	height: 1em;
}

.filepond--item-panel {
	background-color: #595e68;
}

.filepond--drip-blob {
	background-color: #7f8a9a;
}



#preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 10px;
    cursor: pointer;
    transition: transform .2s;
}

#preview img:hover {
    transform: scale(1.1);
}

/* The Modal (background) */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.9);
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Add Animation */
.modal-content {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

.status-badge {
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}


.request-approved {
    background-color: lightgreen !important;
  }
  
  .request-rejected {
    background-color: lightcoral !important;
  }

  
  .request-pending {
    background-color: #d8bfd8 !important;
  }



  .request-status1 {
    background-color: #9fd78b !important;
  }

  .request-status2 {
    background-color: #a7a0d6 !important;
  }

  .request-status3 {
    background-color: #b983b8 !important;
  }

  .request-status4 {
    background-color: #f8b500 !important;
  }

  .request-status5 {
    background-color: #f84242 !important;
  }

  .request-status6 {
    background-color: #a1a1a1 !important;
  }

  .request-status7 {
    background-color: #5dffec !important;
  }

  .request-status8 {
    background-color: #8c7e70 !important;
  }

  .multiline {
    white-space: normal;
  }
  

  .modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .5 )
    url('https://i.stack.imgur.com/FhHRx.gif')
    50% 50%
    no-repeat;
}
body.loading {
    overflow: hidden;
}
body.loading .modal {
    display: block;
}

.bg-success {
  background-color: #530759!important;
}

.bg-success:hover {
  background-color: #66086d!important;
}

.bg-success:focus {
  background-color: #66086d!important;
}

.bg-danger {
  background-color: #b587b4!important
}

.bg-danger:hover {
  background-color: #c59dc9!important
}

.bg-danger:focus {
  background-color: #c59dc9!important
}

.bg-reserved {
  background-color: #474747!important
}

.bg-reserved:hover {
  background-color: #5a5a5a!important
}

.bg-reserved:focus {
  background-color: #5a5a5a!important
}



.text-light {
  color: #530759!important;
}

.display-4 {
  font-weight: 500!important;
  font-size: 2rem!important;
}

.btn-primary {
  background-color: #261d55!important;
  border-color: #261d55!important;
}




/* Existing CSS... */

.chat-panel {
  position: fixed;
  top: 0;
  right: -350px; /* Hidden by default */
  width: 350px;
  height: 100%;
  background: #f8f9fa;
  border-left: 1px solid #ccc;
  transition: right 0.3s;
  z-index: 1001;
}

.chat-header {
  background: #530759;
  color: white;
  padding-left: 10px;
  padding-top: 3px;
  /* display: flex; */
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  height: calc(100% - 120px);
  overflow-y: auto;
  padding: 10px;
}

.chat-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #f8f9fa;
  padding: 10px;
}

.chat-footer input {
  width: calc(100% - 60px);
  padding: 5px;
  margin-right: 5px;
}

.chat-footer button {
  width: 50px;
}

/* Other styles ... */

/* Existing CSS... */

.message {
  padding: 5px 10px;
  margin: 5px;
  border-radius: 5px;
}

.sender {
  background-color: #e1f5fe; /* Light blue for sender */
  text-align: left;
}

.receiver {
  background-color: #c8e6c9; /* Light green for receiver */
  text-align: right;
}

.message-time {
  font-size: 0.8em;
  color: #666;
  text-align: right;
  padding-top: 5px;
}
/* Other styles ... */


.rental-requests-card {
  margin-top: 0px;
}

.rental-requests-card h6 {
  margin-bottom: 3px;
  padding: 0;
  padding-left: 10px;
  font-size: 14px;
}

.rental-requests-card ul {
  list-style-type: none;
  padding: 0;
  padding-left: 10px;;
}

.rental-requests-card li {
  font-size: 12px;
  margin-bottom: 1px;
}

.dx-modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.dx-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.dx-grid-container {
  /* max-width: 100%; */
  width: 1000px;
  overflow-x: scroll; /* Allows horizontal scrolling */
}

.dx-modal-content {
  width: 90%; /* Adjust the modal width */
  max-width: 800px; /* Maximum width of the modal */
}

@media screen and (max-width: 767px) {
  .dx-modal-content {
      width: 95%; /* Larger width for smaller screens */
  }
}

.container {
  max-width: 1900px;
}

.card-title {
  font-size: 0.8rem;
}

.container {
  padding-right: 5px;
  padding-left: 5px;
}

.jumbotron {
  margin-bottom: 0.6rem;
}

.no-gutters2 {
  margin-right: 0;
  margin-left: 0;
}

.no-gutters2 > .col,
.no-gutters2 > [class*="col-"] {
  padding-right: 5px; /* Adjust this value as needed */
  padding-left: 5px;  /* Adjust this value as needed */
}

/* make padding .card-body in posts smaller */
#postsContainer .card-body {
  padding: 0.5rem;
  padding-bottom: 0;
}

#postsContainer .card-header {
  font-size: 0.8rem;
  padding: 0.5rem;
}

.note-container {
  position: relative;
  width: 100%;
  height: 90px; /* Match the height of the textarea */
}

textarea.note-textarea {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: #444;
  border: 1px solid #ced4da;
  padding: 0.25rem;
  font-size: 0.7rem;
  line-height: 1.2; /* Adjusted for smaller font size */
  margin: 0;
  border-radius: 0;
  resize: none;
  z-index: 1;
}

textarea.note-textarea::placeholder {
  color: #ccc;
}

.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.highlights {
  padding: 0.25rem;
  font-size: 0.7rem;
  line-height: 1.2; /* Adjusted for smaller font size */
  white-space: pre-wrap;
  word-wrap: break-word;
  color: transparent;
}

.highlight-blue {
  background-color: rgb(185, 223, 235);
  color: transparent;
}

.highlight-green {
  background-color: rgb(173, 235, 173);
  color: transparent;
}

.highlight-red {
  background-color: rgb(255, 204, 204);
  color: transparent;
}

.save-note-button {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-textarea:focus {
  background-color: transparent !important;
}
