/* Global Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #2f1e17;
    font-family: Arial, sans-serif;
    color: #333;
}

main {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Sidebar */
.side {
    height: 100vh;
    width: 60px;
    background-color: #ffe5b4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.side img {
    width: 40px;
    height: 40px;
    margin: 10px 0;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.side img:hover {
    transform: scale(1.1);
}

/* Info Section and More Info Section */
.info,
.more-info {
    overflow-x: hidden;
    width: 300px;
    height: 100vh;
    background-color: #eaf7ff;
    /* Light background for info panels */
    overflow-y: auto;
    padding-top: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Buttons in Info Section */
.info .btn,
#createBtn,
#addMemberBtnChat,
#nextBtn,
#addMemberBtn,
#addMemberBtnCollege,
#addMemberBtnOffice,
#addMemberBtnFriends,
.nextBtn,
.addMemberBtn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    background-color: #a3d9f5;
    /* Main button color */
    color: #033c6d;
    /* Darker text color for contrast */
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.info .btn:hover,
#createBtn:hover,
#addMemberBtnChat:hover,
#nextBtn:hover,
#addMemberBtn:hover,
#addMemberBtnCollege:hover,
#addMemberBtnOffice:hover,
#addMemberBtnFriends:hover,
.nextBtn:hover,
.addMemberBtn:hover {
    background-color: #74c3ea;
    /* Slightly darker shade for hover */
    transform: scale(1.05);
    /* Scale effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Links and Profile Display */
.info a,
.more-info a {
    text-decoration: none;
    color: #033c6d;
    /* Text color for links */
}

/* Profile Items within Info Sections */
.info a .pro-1,
.more-info a .pro-2 {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin: 5px;
    background-color: #c7e7fb;
    /* Background for profile items */
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.info a .pro-1:hover,
.more-info a .pro-2:hover {
    background-color: #93d3f9;
    /* Slightly darker shade on hover */
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.info a .pro-1 img,
.more-info a .pro-2 img {
    width: 35px;
    height: 35px;
    margin-right: 15px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}


/* Create Folder Popup */
.pop {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.pop-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px;
}

.pop-content p {
    margin: 10px 0;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#nextBtn,
.nextBtn {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#nextBtn:hover,
.nextBtn:hover {
    background-color: #1EBE57;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Chat Section */
.chat {
    flex: 1;
    background-color: #f0d3b2;
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* border-radius: 10px; */
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;*/
}

.chat-profile {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #a3d9f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* border-top-left-radius: 10px; */
    /* border-top-right-radius: 10px; */
}

.chat-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.msg-window {
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 10px;
    background-color: #e6e6e6;
    gap: 10px;
    flex: 1;
}

.message {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    margin-bottom: 5px;
}

/* Styling for sender messages */
.sender {
    background-color: #DCF8C6;
    align-self: flex-end;
    border-top-right-radius: 0;
}

/* Styling for receiver messages */
.receiver {
    background-color: #fff;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.msg {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f8f8f8;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

input[type="text"] {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px;
    margin-right: 5px;
    font-size: 0.9em;
}

#btn-send {
    padding: 8px 12px;
    background-color: #25D366;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

#btn-send:hover {
    background-color: #1EBE57;
}

/* For scrolling to the latest message */
.msg-window {
    scroll-behavior: smooth;
}

.more-info,
.chat-section,
.folder-section {
    display: none;
}

.context-menu {
    position: absolute;
    display: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.context-menu button {
    padding: 8px 12px;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.context-menu button:hover {
    background-color: #f0f0f0;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .side {
        width: 50px;
    }

    .side img {
        width: 35px;
        height: 35px;
    }

    .info,
    .more-info {
        width: 200px;
    }

    .info .btn,
    #createBtn,
    #addMemberBtnChat,
    #nextBtn,
    #addMemberBtn,
    #addMemberBtnCollege,
    #addMemberBtnOffice,
    #addMemberBtnFriends,
    .nextBtn,
    .addMemberBtn {
        padding: 8px 16px;
        margin: 4px;
    }

    input {
        width: 60vw;
    }
}

@media (max-width: 480px) {
    main {
        flex-direction: column;
    }

    .side {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
    }

    .chat {
        flex: 1;
        height: auto;
    }

    .info,
    .more-info {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .info .btn,
    #createBtn,
    #addMemberBtnChat,
    #nextBtn,
    #addMemberBtn,
    #addMemberBtnCollege,
    #addMemberBtnOffice,
    #addMemberBtnFriends,
    .nextBtn,
    .addMemberBtn {
        width: 100%;
        padding: 10px;
        height: auto;
    }
}

.folder-btn,
.chats-btn {
    padding: 3px 6px;
    margin: 5px;
    border: 1px solid black;
    border-radius: 8px;
    background-color: #d9affa;
    height: auto;
}

/* #searchInput {
    width: 89.25%;
    padding: 10px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    border-color: #4CAF50; 
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

#searchInput::placeholder {
    color: #888; 
    font-style: italic;
} */