@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f7f7f7;
}

.wrapper {
    background: #fff;
    width: 370px;
    height: 800px;
    /* S24 FE aspect ratio */
    max-height: 95vh;
    /* Prevent overflowing small screens */
    border-radius: 40px;
    /* Phone corners */
    box-shadow:
        0 0 0 10px #111,
        /* inner bezel */
        0 0 0 14px #555,
        /* outer frame */
        0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Punch hole camera for S24 FE */
.wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: #111;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.2);
}

/* Signup Form CSS code */
.form {
    padding: 35px 30px 25px 30px;
    overflow-y: auto;
    height: 100%;
}

.form header {
    font-size: 25px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e6e6;
}

.form form {
    margin: 20px 0;
}

.form form .error-txt {
    color: #721c24;
    background: #f8d7da;
    padding: 8px 10px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #f5c6cb;
    display: none;
}

.form form .name-details {
    display: flex;
}

form .name-details .field:first-child {
    margin-right: 10px;
}

form .name-details .field:last-child {
    margin-left: 10px;
}

.form form .field {
    display: flex;
    position: relative;
    flex-direction: column;
    margin-bottom: 10px;
}

.form form .field label {
    margin-bottom: 2px;
}

.form form .field input {
    outline: none;
}

.form form .input input {
    height: 40px;
    width: 100%;
    font-size: 16px;
    padding: 0 10px;
    border: 1px solid #ccc;
}

.form form .image input {
    font-size: 17px;
}

.form form .button input {
    margin-top: 13px;
    height: 45px;
    border: none;
    font-size: 17px;
    font-weight: 500;
    background: #333;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.form form .field i {
    position: absolute;
    right: 15px;
    color: #ccc;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
}

.form form .field i.active::before {
    content: "\f070";
    color: #333;
}

.form .link {
    text-align: center;
    margin: 10px 0;
    font-size: 17px;
}

.form .link a {
    color: #333;
}

.form .link a:hover {
    text-decoration: underline;
}

/* Users Area CSS Code */
.users {
    padding: 35px 30px 25px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.users header,
.users .search {
    flex-shrink: 0;
}

.users header,
.users-list a {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    justify-content: space-between;
    border-bottom: 1px solid #e6e6e6;
}

.wrapper img {
    object-fit: cover;
    border-radius: 50%;
}

:is(.users, .users-list) .content {
    display: flex;
    align-items: center;
}

.users header .content img {
    height: 50px;
    width: 50px;
}

:is(.users, .users-list) .details {
    color: #000;
    margin-left: 15px;
}

:is(.users, .users-list) .details span {
    font-size: 18px;
    font-weight: 500;
}

.users header .logout {
    color: #fff;
    font-size: 17px;
    padding: 7px 15px;
    background: #333;
    border-radius: 5px;
}

.users .search {
    margin: 20px 0;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
}

.users .search .text {
    font-size: 18px;
}

.users .search input {
    position: absolute;
    height: 42px;
    width: calc(100% - 50px);
    border: 1px solid #ccc;
    padding: 0 13px;
    font-size: 16px;
    border-radius: 5px 0 0 5px;
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.users .search input.active {
    opacity: 1;
    pointer-events: auto;

}

.users .search button {
    width: 47px;
    height: 42px;
    border: none;
    outline: none;
    color: #333;
    background: #fff;
    font-size: 17px;
    border-radius: 0 5px 5px 0;
    transition: all 0.2s ease;
}

.users .search button.active {
    color: #fff;
    background-color: #333;
}

.users .search button.active i::before {
    content: "\f00d";
}

.users-list {
    flex: 1;
    overflow-y: auto;
}

:is(.users-list, .chat-box)::-webkit-scrollbar {
    width: 0px;
}

.users-list a {
    margin-bottom: 15px;
    page-break-after: 10px;
    padding-right: 15px;
    border-bottom-color: #f1f1f1;
}

.users-list a:last-child {
    border: none;
    margin-bottom: 0px;
}

.users-list a .content img {
    height: 40px;
    width: 40px;
}

.users-list a .content p {
    color: #67676a;
}

.users-list a .status-dot {
    font-size: 12px;
    color: #468669;
}

/* We'll use this class name in php to show offline status */
.users-list a .status-dot.offline {
    color: #ccc
}

/* Red dot for unread messages */
.users-list a .status-dot.unread {
    color: #ff3b30;
}

/* Chat Area CSS code */
.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-area header {
    display: flex;
    align-items: center;
    padding: 35px 30px 18px 30px;
    flex-shrink: 0;
}

.chat-area header .back-icon {
    font-size: 18px;
    color: #333;
}

.chat-area header img {
    height: 45px;
    width: 45px;
    margin: 0 15px;
}

.chat-area header span {
    font-size: 17px;
    font-weight: 500;
}

.chat-box {
    flex: 1;
    /* Take up all available space */
    height: 0;
    /* Important for flex child with overflow */
    overflow-y: auto;
    overflow-x: hidden;
    background: #f7f7f7;
    padding: 10px 30px 20px 30px;
    box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 5%),
        inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}

.chat-box .chat {
    margin: 15px 0;
}

.chat-box .chat p {
    word-wrap: break-word;
    word-break: break-word;
    padding: 8px 16px;
    box-shadow: 0 0 32px rgb(0 0 0 / 8%),
        0 16px 16px -16px rgb(0 0 0 / 10%);
}

.chat-box .outgoing {
    display: flex;
    justify-content: flex-end;
}

.outgoing .details {
    max-width: calc(100% - 130px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
}

.outgoing .details p {
    background: #333;
    color: #fff;
    border-radius: 18px 18px 0 18px;
}

.chat-box .incoming {
    display: flex;
    align-items: flex-end;
}

.chat-box .incoming img {
    height: 35px;
    width: 35px;
}

.incoming .details {
    margin-left: 10px;
    max-width: calc(100% - 130px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.text-group {
    display: flex;
    align-items: flex-end;
    min-width: 0;
}

.outgoing .text-group {
    flex-direction: row-reverse;
}

.incoming .text-group {
    flex-direction: row;
}

.incoming .details p {
    background: #fff;
    color: #333;
    border-radius: 18px 18px 18px 0;
}

.chat-box .chat p .chat-link {
    color: #007bff;
    text-decoration: underline;
    word-break: break-all;
}

.chat-box .outgoing p .chat-link {
    color: #8ab4f8;
    /* Lighter blue for dark background */
}

.chat-area .typing-area {
    padding: 18px 30px 25px 30px;
    /* Extra padding at bottom for S24 FE bezel/gesture area */
    display: flex;
    justify-content: space-between;
    background: #fff;
    flex-shrink: 0;
}

.upload-btn {
    width: 50px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 5px 0 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 19px;
    color: #666;
    background: #fff;
}

.upload-btn.active {
    color: #007bff;
}

.typing-area input.input-field {
    height: 45px;
    flex-grow: 1;
    font-size: 17px;
    border: 1px solid #ccc;
    padding: 0 13px;
    border-radius: 0;
    outline: none;
}

.typing-area button {
    width: 55px;
    border: none;
    outline: none;
    background: #333;
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

.time-stamp {
    font-size: 9px;
    opacity: 0.7;
    color: #67676a;
    margin: 0 8px;
    flex-shrink: 0;
}

.outgoing .time-stamp {
    text-align: right;
}

.incoming .time-stamp {
    text-align: left;
}

.wrapper .chat-image {
    max-width: 250px;
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 5px;
    display: block;
    object-fit: cover;
}

.video-container {
    position: relative;
    max-width: 250px;
    width: 100%;
    margin-bottom: 5px;
    cursor: pointer;
}

.wrapper .chat-video {
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    pointer-events: none;
}

.chat-file {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 18px 18px 18px 0;
    text-decoration: none;
    margin-bottom: 5px;
    word-break: break-all;
    box-shadow: 0 0 32px rgb(0 0 0 / 8%),
        0 16px 16px -16px rgb(0 0 0 / 10%);
}

.incoming .chat-file {
    background: #fff;
    color: #333;
}

.outgoing .chat-file {
    background: #333;
    color: #fff;
    border-radius: 18px 18px 0 18px;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.wrapper .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Reply feature styles */
.reply-btn {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    align-self: center;
    visibility: hidden;
    padding: 5px;
    transition: color 0.2s;
}

.reply-btn:hover {
    color: #333;
}

.chat:hover .reply-btn {
    visibility: visible;
}

.outgoing .reply-btn {
    margin-right: 10px;
}

.incoming .reply-btn {
    margin-left: 10px;
}

.reply-bubble {
    padding: 6px 12px;
    border-radius: 14px;
    margin-bottom: 2px;
    font-size: 13px;
    text-align: left;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.outgoing .reply-bubble {
    background: #4a4a4a;
    /* slightly lighter than #333 */
    border-left: 4px solid #888;
    color: #fff;
}

.incoming .reply-bubble {
    background: #f5f5f5;
    /* off-white, slightly different from #fff */
    border-left: 4px solid #ccc;
    color: #333;
}

.reply-name {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
}

.outgoing .reply-name {
    color: #ccc;
}

.incoming .reply-name {
    color: #666;
}

.reply-banner {
    background: #f1f1f1;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.reply-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reply-label {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin-bottom: 3px;
}

#reply-text {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

.close-reply {
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 5px;
}

.close-reply:hover {
    color: #333;
}

@keyframes highlight {
    0% {
        background-color: rgba(255, 215, 0, 0.3);
        border-radius: 10px;
    }

    100% {
        background-color: transparent;
        border-radius: 10px;
    }
}

.highlight-msg {
    animation: highlight 1.5s ease-out;
}

/* Reaction Feature Styles */
.msg-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s, visibility 0.2s;
}

.chat:hover .msg-actions,
.msg-actions.force-show {
    visibility: visible;
    opacity: 1;
}

.outgoing .msg-actions {
    margin-right: 10px;
}

.incoming .msg-actions {
    margin-left: 10px;
}

.react-btn,
.reply-btn {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.react-btn:hover,
.reply-btn:hover {
    color: #333;
}

.chat .details {
    position: relative;
}

.msg-reaction {
    position: absolute;
    bottom: -10px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: default;
    user-select: none;
}

.outgoing .msg-reaction {
    left: -5px;
}

.incoming .msg-reaction {
    left: -5px;
}

/* Emoji Picker Popup */
.emoji-picker {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px;
    z-index: 1000;
    transform: translateY(-10px);
}

.emoji-picker .emoji {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
}

.emoji-picker .emoji:hover {
    transform: scale(1.3);
}

.custom-emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: auto 2px;
}

.custom-emoji-input {
    width: 35px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 4px;
    font-size: 16px;
    text-align: center;
    margin: auto 0 auto 5px;
    outline: none;
    transition: all 0.2s ease;
}

.custom-emoji-input:focus {
    border-color: #333;
}

/* Message Dropdown Actions */
.msg-dropdown-container {
    position: relative;
    display: inline-block;
}

.more-btn {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 5px;
}

.more-btn:hover {
    color: #333;
}

.msg-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

.msg-dropdown-menu.active {
    display: block;
}

.edit-msg-btn,
.delete-msg-btn {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-msg-btn {
    color: #333;
}

.delete-msg-btn {
    color: #dc3545;
}

.edit-msg-btn:hover {
    background: #f1f1f1;
}

.delete-msg-btn:hover {
    background: #fdf0f0;
}

/* Dark Mode Theme */
html.dark-mode body {
    background: #121212;
    color: #e0e0e0;
}

html.dark-mode .wrapper {
    background: #1e1e1e;
    box-shadow: 0 0 64px 0 rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

html.dark-mode :is(.users, .users-list) .details {
    color: #e0e0e0;
}

html.dark-mode .users header,
html.dark-mode .users-list a,
html.dark-mode .form header,
html.dark-mode .chat-area header {
    border-bottom-color: #333;
}

html.dark-mode .chat-area header .back-icon,
html.dark-mode .chat-area header span {
    color: #e0e0e0;
}

html.dark-mode .chat-box {
    background: #121212;
    box-shadow: inset 0 32px 32px -32px rgb(0 0 0 / 50%), inset 0 -32px 32px -32px rgb(0 0 0 / 50%);
}

html.dark-mode .incoming .details p {
    background: #2a2a2a;
    color: #e0e0e0;
}

html.dark-mode .outgoing .details p {
    background: #007bff;
    color: #fff;
}

html.dark-mode .typing-area {
    background: #1e1e1e;
}

html.dark-mode .typing-area input {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .typing-area button,
html.dark-mode .upload-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .users .search input {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .users .search button {
    background: #333;
    color: #e0e0e0;
}

html.dark-mode .msg-reaction {
    background: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

html.dark-mode .emoji-picker {
    background: #2a2a2a;
    border-color: #444;
}

html.dark-mode .custom-emoji-btn {
    background: #444;
    color: #e0e0e0;
}

html.dark-mode .custom-emoji-input {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}

html.dark-mode .custom-emoji-input:focus {
    border-color: #8ab4f8;
}

html.dark-mode .modal-content {
    background-color: #1e1e1e !important;
    color: #e0e0e0;
}

html.dark-mode .modal-content input,
html.dark-mode .modal-content .search-box {
    background: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

html.dark-mode .modal-content div[style*="border-bottom"] {
    border-bottom-color: #333 !important;
}

html.dark-mode .reply-bubble.incoming {
    background: #2a2a2a;
    color: #e0e0e0;
    border-left-color: #555;
}

html.dark-mode .reply-bubble.outgoing {
    background: #0056b3;
    border-left-color: #004085;
}

html.dark-mode .reply-banner {
    background: #1e1e1e;
    border-top-color: #333;
    color: #e0e0e0;
}

html.dark-mode .reply-label {
    color: #e0e0e0;
}

html.dark-mode .form form .input input {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

html.dark-mode .users-list a .content p {
    color: #aaa;
}

html.dark-mode .users-list a label {
    color: #e0e0e0 !important;
}

html.dark-mode .users-list a span[style*="color:#333"] {
    color: #e0e0e0 !important;
}

html.dark-mode .form .link a {
    color: #007bff;
}

html.dark-mode .msg-dropdown-menu {
    background: #2a2a2a;
    border-color: #444;
}

html.dark-mode .edit-msg-btn {
    color: #e0e0e0;
}

html.dark-mode .edit-msg-btn:hover {
    background: #3a3a3a;
}

html.dark-mode .delete-msg-btn:hover {
    background: #4a2a2a;
}

html.dark-mode .more-btn:hover {
    color: #e0e0e0;
}

/* Schedule Feature Styles */
.schedule-btn {
    width: 40px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 19px;
    color: #666;
    background: #fff;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: none;
    border-radius: 0;
    margin: 0;
    transition: color 0.2s;
    box-sizing: border-box;
}

.schedule-btn:hover,
.schedule-btn.active {
    color: #007bff;
}

.schedule-input {
    height: 45px;
    border: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: none;
    padding: 0 5px;
    font-size: 14px;
    outline: none;
    color: #333;
    max-width: 140px;
    box-sizing: border-box;
}

#pending-scheduled-container {
    padding: 0 30px;
    margin-bottom: 10px;
}

.pending-scheduled-banner {
    background: #fdfae3;
    border: 1px solid #f0e68c;
    border-radius: 8px;
    overflow: hidden;
}

.pending-header {
    background: #f0e68c;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.pending-list {
    max-height: 120px;
    overflow-y: auto;
}

.pending-msg-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.pending-msg-item:last-child {
    border-bottom: none;
}

.pending-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-right: 10px;
}

.pending-time {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
}

.pending-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.cancel-pending-btn {
    cursor: pointer;
    color: #dc3545;
    padding: 5px;
    transition: transform 0.2s;
}

.cancel-pending-btn:hover {
    transform: scale(1.2);
}

/* Dark mode support for schedule feature */
html.dark-mode .schedule-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .schedule-input {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #333;
}

html.dark-mode .pending-scheduled-banner {
    background: #2a2a2a;
    border-color: #444;
}

html.dark-mode .pending-header {
    background: #444;
    color: #e0e0e0;
}

html.dark-mode .pending-msg-item {
    border-bottom-color: #333;
}

html.dark-mode .pending-text {
    color: #e0e0e0;
}

html.dark-mode .pending-time {
    color: #aaa;
}

/* Confirm schedule button */
.confirm-schedule-btn {
    width: 55px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 19px;
    color: #fff;
    background: #28a745;
    border: none;
    border-radius: 0 5px 5px 0;
    transition: background 0.2s;
    box-sizing: border-box;
}

.confirm-schedule-btn:hover {
    background: #218838;
}

html.dark-mode .confirm-schedule-btn {
    background: #28a745;
    color: #fff;
}

/* Responsive Design for Mobile Phones */
@media screen and (max-width: 500px) {

    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    body {
        align-items: flex-start;
        padding: 0;
    }

    .wrapper {
        width: 100%;
        height: 100%;
        min-height: 100%;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .form {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
    }

    .chat-area,
    .users {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .chat-box {
        flex: 1;
        height: 0;
        overflow-y: auto;
    }

    .users-list {
        flex: 1;
        height: 0;
        max-height: none;
        overflow-y: auto;
    }

    #theme-toggle-btn {
        bottom: 90px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
}

/* Responsive Design for Google Pixel Watch & Smartwatches */
@media screen and (max-width: 320px) {
    .wrapper {
        width: 100vw;
        height: 100%;
        border-radius: 0;
    }

    .form {
        padding: 10px;
    }

    .form header {
        font-size: 18px;
    }

    .form form .input input {
        height: 35px;
        font-size: 13px;
        padding: 0 5px;
    }

    .form form .button input {
        height: 35px;
        font-size: 14px;
        margin-top: 5px;
    }

    .chat-area header {
        padding: 10px;
    }

    .chat-area header img {
        height: 30px;
        width: 30px;
        margin: 0 8px;
    }

    .chat-area header span {
        font-size: 14px;
    }

    .chat-box {
        padding: 10px 10px 20px 10px;
    }

    .chat-box .chat p {
        font-size: 12px;
        padding: 5px 8px;
    }

    .typing-area {
        padding: 10px;
    }

    .typing-area input.input-field {
        height: 35px;
        font-size: 13px;
    }

    .typing-area button,
    .upload-btn,
    .schedule-btn {
        width: 35px;
        font-size: 14px;
        height: 35px;
    }

    .users {
        padding: 15px 10px;
    }

    .users header img {
        height: 35px;
        width: 35px;
    }

    :is(.users, .users-list) .details span {
        font-size: 14px;
    }

    .chat-area header .back-icon {
        font-size: 14px;
    }

    #theme-toggle-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
        bottom: 65px !important;
        right: 10px !important;
    }
}