body{
    font-family: "Josefin Sans", sans-serif;
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-template-rows: 1fr;
    background-color: #FFFDF1;
}
                                        /* NAV BAR */
#nav{
    grid-column: 1/2;
    background-color: #6daf92;
    position: fixed;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 3fr 1fr;
    justify-content: center;
    width: 15%;
    height: 98%;
    padding: 25px;
    color:#fee57e;
    text-align: center;
}
.logo{
    grid-row:1/2;
    display: flex;
    padding-right: 10px;
    justify-content: flex-start;
}
.logo h1{
    color:#fee57e;
}
.logo img {
    width: 60px;
    height: 50px;
    padding: 0px 10px 0px 0px;
}
.menu{
    grid-row: 2/5;
    grid-column: 1/2;
    line-height: 60px;
    font-size: 25px; 
}
.menu a{
    color:#fee57e;
    text-decoration: none;
    list-style: none;
}
.account-tab{
    grid-row: 5/6;
    grid-column: 1/2;
    display: flex;
    justify-content: center;
    width: 100%;
}
.account-tab a{
    color:#fee57e;
    text-decoration: none;
    list-style: none;
    font-size: 25px; 
    align-items: center;
    padding: 10px;
    height: 30%;
}
.account-tab img {
    width: 35px;
    height: 35px;
    padding: 0px 15px 30px 0px;
}
a:hover { /* Reactive Menu Items*/
    background-color: #FEFAE0;
    padding: 10px;
    border-radius: 20px;
}

                                        /* CALENDAR */
.calendar-container {
    grid-column: 2/7;
    width: 80%;
    margin: auto;
    background-color: #FFFFED;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.filters {
    display: flex;
    justify-content: space-between; /* Changed from flex-end to space-between */
    margin-bottom: 20px;
    align-items: center;
    gap: 20px; /* Space between the dropdowns */
}

.filter-select, .view-select {
    font-family: "Josefin Sans", sans-serif;
    padding: 11.5px 15px;  
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 40px;
    width: 200px;
    font-size: 16px;
    font-weight: bold;
    background-color: #e0f4f1;
    box-sizing: border-box;
    color: #333;
    align-items: center;  
}

#subject-filter {
    background-color: #e0f4f1;
    border-radius: 5px;
    height: 40px;
    width: 200px;
    color: #333;
}

/* Calendar Table - Base Structure */
.calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    overflow: hidden;
    border-radius: 8px; 
}

.calendar tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.calendar tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.calendar tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.calendar tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

.calendar-wrapper {
    margin: 0;
    padding: 0;
}

.calendar-wrapper table {
    width: 100%;
}

.calendar td {
    position: relative;
    width: 14.28%;
    height: 150px;  
    padding: 8px;  
    vertical-align: top;
    border: 1px solid #bbb;
    background-color: #e0f4f1;
}

/* Date Number */
.date-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    height: 20px;
}

/* Event Container */
.event-container {
    background-color: #e0f4f1;
    position: absolute;
    top: 35px; 
    left: 5px;
    right: 5px;
    bottom: 5px;
    overflow-y: auto;
    max-height: calc(100% - 40px);
}

/* Individual Events */
.event {
    background-color: #CCD5AE;  
    border-radius: 4px;
    padding: 8px;
    margin: 4px 0;
    font-size: 14px;
    min-height: 45px;  
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 4px solid #89A995;
}

.event-content {
    flex-grow: 1;
    padding-right: 20px; 
}

.event-time {
    font-weight: bold;
    color: #4a5d23; 
    margin-bottom: 3px;  
    font-size: 12px;  
}

.event-text {
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 20px;
    position: relative; /* Added for absolute positioning of delete button */
}

/* Header Cells */
.calendar th {
    background-color: #e0f4f1;
    padding: 15px;
    font-weight: bold;
    border: 1px solid #bbb;
    width: 14.28%;
}

/* Month header styling */
.month-header {
    background-color: #FFFFED;
    padding: 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.month-header h2 {
    color: black;
    font-size: 24px;
    margin: 0;
}

/* Event Styling */
.event:hover {
    background: #E9EDC9;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 300px;
    text-align: center;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Event Input Modal Styles */
#event-input,
#event-time,
#event-location,
#event-buddies,
#session-type {
    width: 90%;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}



/* Event Details Content */
#event-details-content p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

#save-event {
    margin-top: 10px;
    background-color: #89A995;  
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;  
    width: 90%;
    display: block;
    margin-left: auto; 
    margin-right: auto;
}

#save-event:hover {
    background-color: #7DA18A; 
    transform: scale(1.02); 
}

                                             /* HomePage */
.homecss {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-top: 30px;
    padding-left: 300px;
}
.homecss p{
    font-size: 9;
    line-height: 30px;
    font-weight: light;
    margin: 0px;
}
.box-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 10px;
}

.box {
    background-color: #FFFFED;
    height: 700px;
    width: 450px; 
    border: 1px solid #baba9d;
    margin: 0px 20px; 
    border-radius: 25px;
    overflow: scroll;
    scrollbar-color: rgb(142, 141, 141);
    scrollbar-width: thin;
}

.shortbox {
    background-color: #FFFFED;
    height: 325px;
    width: 300px;
    border: 1px solid #baba9d;
    margin: 0 20px; 
    border-radius: 25px;
    overflow: scroll;
    scrollbar-color: rgb(142, 141, 141);
    scrollbar-width: thin;
    margin-bottom: 50px;
}
.shortbox2 {
    background-color: #FFFFED;
    height: 325px;
    width: 300px; 
    border: 1px solid #baba9d;
    margin: 0 20px; 
    border-radius: 25px;
    overflow: scroll;
    scrollbar-color: rgb(142, 141, 141);
    scrollbar-width: thin;
}


.minibox {
    background-color: #e0f4f1;
    color: #1886a8;
    height: fit-content;
    border: 1px solid #4ecef6;
    margin: 10px; /* Fixed spacing: 20px on left and right */
    border-radius: 15px;
    box-shadow: 1px 1px 1px 1px grey;
    font-size: 20px;
    padding: 15px;
}
.minibox  hr{
    border-color: #4ecef6;
}
.when{
    display: flex;
    font-size: 25px;
    justify-content: space-between;
    font-weight: normal;
    margin:0px;
    padding: 0px;
}
.other{
    font-size: 15px;
}
.clickable {
    display: flex;
    justify-content: center;
    width: auto;
    padding: 10px 20px;
    background-color: #e0f4f1;
    border: 1px solid #4ecef6; 
    border-radius: 8px;

}
.clickable:hover{
    border: 2px solid #1886a8;
}
.clicked {
    background-color: #1886a8; 
    color: #FFFFED;
}
.minibox-blue {
    background-color: #d5fff9;
    height: 70px;
    width: 275px; /* Fixed width */
    border: 1px solid #4ecef6;
    margin: 10px; /* Fixed spacing: 20px on left and right */
    border-radius: 15px;
    box-shadow: 1px 1px 1px 1px grey;
}

.smallbox {
    background-color: #DAF7A6;
    color: #8aa653;
    height: 140px;
    border: 1px solid #bbdb80;
    margin: 10px; /* Fixed spacing: 20px on left and right */
    border-radius: 15px;
    padding: 15px;
    box-shadow: 1px 1px 1px 1px grey;
    font-size: 20px;
}
.smallbox  hr{
    border-color: #bbdb80;
}
.box-container h1 {
    text-align: center;
    color: #6daf92;
    margin-bottom: 5px; /* Space between label and box */
    padding-left: 0px;
}

                                        /* Account */
#profile{
    grid-column: 2/7;
    margin-left: 20px;
    text-align: center;
    color: #6daf92;
}
.propic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid #fee57e;
    display: flex;
    margin-left: auto;
    margin-right: auto;
}
#profile h3{
    font-weight: 400;
}
#courseContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    background-color: #FFFDF1;
    margin: 0px 400px;
}

.course-name {
    margin-right: 30px;
    width: 50px;
    flex: 1;
    font-size: 16px;
    font-weight: 400;
}

.course-item > button {
    padding: 10px 10px;
    margin: 0px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.edit-btn, .delete-btn {
    background-color: #FFFDF1;
    color: #6daf92;
}
.edit-btn:hover,
.delete-btn:hover {
    background-color: #6daf92;
    color: #FEFAE0;
}
.open-button {
    background-color: #555;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 280px;
  }
  
  /* The popup form - hidden by default */
  .form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
  }
  
  /* Add styles to the form container */
  .form-container {
    max-width: 300px;
    padding: 10px;
    background-color: white;
  }
  
  /* Full-width input fields */
  .form-container input[type=text], .form-container input[type=password] {
    width: 100%;
    padding: 15px;
    margin: 5px 0 22px 0;
    border: none;
    background: #f1f1f1;
  }
  
  /* When the inputs get focus, do something */
  .form-container input[type=text]:focus, .form-container input[type=password]:focus {
    background-color: #ddd;
    outline: none;
  }
  
  /* Set a style for the submit/login button */
  .form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
  }
  
  /* Add a red background color to the cancel button */
  .form-container .cancel {
    background-color: red;
  }
  
  /* Add some hover effects to buttons */
  .form-container .btn:hover, .open-button:hover {
    opacity: 1;
  }

                                        /* Sign Up */
main {
    padding-top: 20px;
    grid-column: 1/7;
    width: 100%;
    align-items: center;
    background-color: #fff;

}
fieldset{
    width: 50%;
}
form{
    text-align: left;
    padding: 20px;
    background-color: #fff;
    border: 3px solid #6daf92;
    border-radius: 15px;
    color:#6daf92;
    justify-content: center;
    display: flex;
}
h1{
    margin: 15px 0px 30px 0px;
    text-align: center;
    color: #6daf92;
}
 
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  background-color:  #FEFAE0;
  border: 2px solid #D9D9D3;
  border-radius: 10px;
  font-size: 16px;
  height: auto;
  margin: 0;
  outline: 0;
  padding: 15px;
  width: 90%;
  color:#6daf92;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
  margin-bottom: 20px;
  transition: all 350ms;
}
input::placeholder,
textarea::placeholder {
color:#6daf92;
}
input:hover,input:focus,
textarea:hover,textarea:focus,
select:hover,select:focus{
    border: 2px solid #6daf92;
}
button{
    padding: 15px 5px;
    color: #fff;
    background-color: #6daf92;
    font-size: 18px;
    text-align: center;
    justify-content: center;
    font-style: normal;
    border-radius: 5px;
    border: none;
    width: 50%;
    margin: 10px 0px;
    margin-left: 25%;
    transition: all 350ms;
}

button:hover,
button:focus{
  background-color: #89cdaf;
  color: white;
  width: 50%;
}
button.add{
    width: 40%;
    height: 20px;
    padding-bottom: 30px;
    justify-content: center;
    margin:0;
}

#heading{
    display:flex;
    justify-content: center;

}

@media screen and (min-width: 768){
    .logo{
        display: block;
        padding-right: 10px;
        justify-content: center;
    }
    .account-tab{
        display: block;
        justify-content: center;
    }
}
/* Weekly View Specific Styles */
.calendar-wrapper.week-view {
    background-color: #e0f4f1;
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
}

.week-view .calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.week-view .calendar th {
    background-color: #e0f4f1;
    color: black;
    padding: 15px;
    font-weight: bold;
    border-right: 1px solid #bbb;
    border-bottom: 1px solid #bbb;
}


.week-view .calendar td {
    background-color: #e0f4f1;
    height: 120px;
    border-right: 1px solid #bbb;
    vertical-align: top;
    padding: 10px;
}

.week-view .calendar td:last-child {
    border-right: none;
}

/* Update the month header for weekly view */
.week-view .month-header {
    background-color: #FFFFED;
    padding: 20px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.week-view .month-header h2 {
    color: black;
    font-size: 24px;
}

/* For weekly view */
.week-view .calendar th,
.week-view .calendar td {
    width: 14.28%;
}

/* Monthly view row height */
.calendar td {
    height: 150px; 
    vertical-align: top;
    padding: 10px;
}

/* Keep weekly view rows at their current height */
.week-view .calendar td {
    height: 120px;
}

.calendar-nav {
    display: grid;
    grid-template-columns: 100px 1fr 100px; /* Fixed width for buttons and flexible middle */
    align-items: center;
    padding: 10px 20px;
    background-color: #FFFFED;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.calendar-nav button {
    background-color: #6daf92;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    transition: background-color 0.3s;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#prev-btn {
    justify-self: start; /* Align to start of grid cell */
}

#next-btn {
    justify-self: end; /* Align to end of grid cell */
}

.calendar-nav button:hover {
    background-color: #E9EDC9;
}

.month-header {
    text-align: center;
    justify-self: center; /* Center in grid cell */
}

.month-header h2 {
    margin: 0;
}

/* Weekly view styles */
.calendar.week-view td {
    background-color: #e0f4f1;
    height: 500px;
    border-right: 1px solid #bbb;
    vertical-align: top;
    padding: 10px;
    position: relative;
}

.calendar.week-view .event-container {
    position: absolute;
    top: 35px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    overflow-y: auto;
    max-height: 500px;  /* Match the cell height */
}

/* Keep monthly view height as is */
.calendar:not(.week-view) td {
    height: 150px;
    vertical-align: top;
    padding: 10px;
}

.calendar.monthly.event-container {
    margin-top: 5px;
    max-height: 70px; /* Limit height for monthly view */
    overflow-y: auto; /* Allow scrolling if too many events */
}

.event {
    background-color: #DAF7A6;
    border-radius: 4px;
    padding: 5px;
    margin: 2px 0;
    font-size: 12px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 20px; /* Consistent height for events */
}

.calendar td {
    position: relative;
    height: 100px;
    padding: 5px;
    vertical-align: top;
}

.delete-event {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin: 0;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-event:hover {
    color: #333;
}

/* Adjust event text to not overlap with delete button */
.event span {
    display: block;
    padding-right: 20px; /* Make space for delete button */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;  
    padding-right: 20px; 
    line-height: 1.3; 
}

/*friends.css*/
.friends-container {
    grid-column: 1/3;
    margin-left: 250px;
    padding: 2rem;
} 

h1 {
    margin: 15px 0px 30px 0px;
    text-align: center;
    color: #6daf92;
}


.search-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-filter input,
.search-filter select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #f5f5f5; /* Light grey background */

}

.search-filter input {
    flex: 1;
}

.search-filter select {
    width: 200px;
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 1rem;
    max-width: calc(100vw - 280px);
} 

.friend-card {
    background-color: #e0f4f1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
    padding: 1.5rem;
    width: auto; 
    display: flex; 
    flex-direction: column;
}

.friend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.friend-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 3px solid white;
    transition: all 0.3s ease;
}

.friend-info {
    padding: 1.5rem;
}

.friend-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.course-tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-info {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-icon::before {
    content: "📧";
}

.phone-icon::before {
    content: "📱";
}

.message-btn {
    width: auto;
    padding: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.message-btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.friend-card:nth-child(1) .course-tag {
  background-color: #e3f2fd;
  color: #1565c0;
}

.friend-card:nth-child(2) .course-tag {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.friend-card:nth-child(3) .course-tag {
  background-color: #fce4ec;
  color: #c2185b;
}

.friend-card:nth-child(4) .course-tag {
  background-color: #fff3e0;
  color: #e65100;
}

.friend-card {
  border: 1px solid white;
}

.friend-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .friends-container {
        margin-left: 0;
        padding: 1rem;
    }

    .navbar {
        width: 100%;
        height: auto;
        position: static;
    }

    .nav-links {
        flex-direction: row;
        justify-content: space-between;
        overflow-x: auto;
    }

    .search-filter {
        flex-direction: column;
    }

    .search-filter select {
        width: 100%;
    }

    .friends-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    @media (max-width: 1400px) {
        .friends-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

#searchInput {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  width: 300px;
  transition: border-color 0.2s;
}

#searchInput:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.body-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #fff;
}

.main-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sign-in-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
}

.login-form {
    width: 100%;
}

.form-fieldset {
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
}

.form-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.form-input {
    width: 80%;
    padding: 8px;
    margin: 5px 0;
}

.submit-button{
    width: 200px;
    padding: 10px;
    margin: 15px auto;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;

}

.signup-container a:hover{
    text-decoration: none;
}

.signup-button:hover {
    background-color: #89cdaf; /* Keep the same color on hover */
    color: white; /* Keep the same text color on hover */
    cursor: pointer;
    /* Remove any other hover effects */
    outline: none;
    border: none;
    cursor: pointer;
}

/* Prevent any default button hover effects */
.signup-button {
    width: 200px;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #6daf92; /* This prevents color changes on hover */
    color: white; /* This keeps text color consistent */
}

.signup-container a:hover {
    text-decoration: none;
    background-color: #fff;
}

/*chats.css*/
.chat-container {
    display: flex;
    height: calc(100vh - 0px); /* Adjust if needed based on any top margins/padding */
    background-color: white;
    margin-left: 275px; /* Matches your nav width */
    position: fixed; /* Add this */
    right: 0; /* Add this */
    left: 0;
  }
  
  
  .chat-sidebar {
    width: 300px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    background: #fbf9f9;
  }
  
  .search-bar {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    margin-right: 100px;
  }
  
  .search-bar input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;

  }

  .compose-btn {
    margin-right: 100px;
    padding: 0.5rem 0.75rem;  /* Reduced padding */
    color: white;
    border: none;
    border-radius: 6px;  /* Slightly reduced border radius */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;  /* Reduced gap between icon and text */
    font-weight: 500;
    font-size: 0.9rem;  /* Smaller font size */
    transition: background-color 0.2s;
    background-color: #6daf92;
}

.compose-btn i {
    font-size: 1rem;  /* Smaller icon size */
}
  
  .chat-list {
    overflow-y: auto;
    flex-grow: 1;
    background-color: rgb(251, 251, 251);
  }
  
  .chat-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .chat-item:hover {
    background-color: #007bff;
  }
  
  .chat-item.active {
    background-color: #e3f2fd;
  }
  
  .chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
  }
  
  .chat-preview h4 {
    margin-bottom: 0.25rem;
    color: #333;
  }
  
  .chat-preview p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .last-message {
    color: #999;
    font-size: 0.8rem;
  }
      
.compose-btn:hover {
        border: 1px solid #6daf92;
        background-color:#89cdaf;
        color: white;
}

  /* Main chat area styles */
  .chat-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .chat-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
  }
  
  .partner-info {
    display: flex;
    align-items: center;
  }
  
  .partner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
  }
  
  .partner-details h3 {
    color: #333;
    margin-bottom: 0.25rem;
  }
  
  .partner-details p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  /* Messages container */
  .messages-container {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #e0f4f1;
  }
  
  .message {
    display: flex;
    margin-bottom: 1rem;
    max-width: 70%;
  }
  
  .message.received {
    margin-right: auto;
  }
  
  .message.sent {
    margin-left: auto;
    flex-direction: row-reverse;
  }
  
  .message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 0.5rem;
  }
  
  .message-content {
    background-color: white;
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }
  
  .message.sent .message-content {
    background-color: #007bff;
    color: white;
  }
  
  .message-time {
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-top: 0.25rem;
  }
  
  .message.sent .message-time {
    color: #ccc;
  }
  
  
  .message-input-container {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    background-color: white;
  }
  
  .message-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
  }
  
  .send-button {
    padding: 0.75rem 1.5rem;
    background-color: #6daf92;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .send-button:hover {
    border: 1px solid #6daf92;
    background-color:#89cdaf;
    color: white;
  }
  
  
  @media (max-width: 768px) {
    .chat-sidebar {
        width: 100%;
        position: absolute;
        height: calc(100vh - 64px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
  
    .chat-sidebar.active {
        transform: translateX(0);
    }
  
    .message {
        max-width: 90%;
    }
  }

  .new-chat-input {
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.new-chat-input:focus {
    border-color: #007bff;
}

#event-time {
    width: 90%;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Event Details Modal */
#event-details-modal .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 400px;
    border-radius: 8px;
    position: relative;
}

#event-details-content {
    margin-top: 20px;
}

#event-details-content p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

.close-details {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-details:hover {
    color: #333;
}

/* Style for location text in event box */
.event-text {
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-size: 13px;
    color: #4a5d23;
}

