* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Jost', sans-serif;
  font-style: normal;
}
.container {
    display: flex;
    margin: 0;
}

.sidebar {
    width: 23vw;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

.sidebar ul {
    list-style-type: none;
}

.sidebar ul li {
    border-bottom: 1px solid rgb(210, 210, 210);
    padding: 3%;
    color: grey;
    font-size: 15px;
}

.sidebar ul li button {
    background: none;
    border: none;
    color: grey;
    font-size: 15px;
    cursor: pointer;
    margin-left: 5%;
}

.sidebar li.active {
    background: linear-gradient(to right,#8641f8,#9D30b1);
    color: white; 
    border-radius: 10px;
}
.sidebar li.active button {
    color: white;
}

.main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#more-btn {
    padding: 0.3% 2%;
    cursor: pointer;
    border-radius: 10px;
    background-color: #f1dcf6;
    color: #9D30b1;
    font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 15px;
}

.dropdown {
    display: none;
    position: absolute;
    top: 17%;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Jost', sans-serif;
  font-style: normal;
}

#dropdown-menu button {
    display: block;
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 15px;
  color: grey;
}

#dropdown-menu button:hover {
    background-color: #ecf0f1;
}

#search {
    padding: 10px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.messages {
    flex: 1;
    overflow-y: auto;
}

.message-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.message-item input[type="checkbox"] {
    margin-right: 10px;
}

.message-item .star {
    margin-right: 10px;
    cursor: pointer;
    color: rgb(194, 192, 192);
}
.subject, .time{
    color: grey;
    font-size: 15px;
}
.search-container {
    position: relative;
    display: inline-block;
}

#search {
    padding: 1% 5%;
    padding-right: 40px; /* space for the icon */
    font-size: 15px;
    border-radius: 5px;
    border: none;
    width: 200px;
    color: grey;
}

.fa-magnifying-glass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* icon should not interfere with input interactions */
    color: #888;
}
.message-item .star.active {
    color: #9D30b1;
}
.inbox-intro{
    padding: 1% 2%;
    background-color: white;
    border-radius: 10px;
    margin-left: 1%;
    margin-right: 1%;
    margin-bottom: 1%;
    margin-top: 1%;
}
.inbox-intro p{
    color: #9D30b1;
}



@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .main-content {
        padding: 10px;
    }

    #search {
        width: 100%;
    }
}

/* email details */
.email-div{
    display: flex;
    gap: 3%;
    font-size: 15px;
}
.email-div li img{
    height: 80px;
    width: 80px;
    border-radius: 20px;
}
.email-div li strong{
    color: #9D30b1;
    font-size: 15px;
}
.email-div li p{
    color: grey;
    font-size: 15px;
}
.sub-span, .name-span{
    color: #9D30b1;
    font-weight: 600;
}
.msg{
    font-size: 15px;
    line-height: 20px;
}
.reply{
    background: linear-gradient(to right,#8641f8,#9D30b1);
    color: white;
    padding: 1% 2%;
    border-radius: 10px;
}