/* .welcomeContentContainer{
    background: var(--color-background-dark-primary);
} */
#rightPanel {
    /* sbackground: white; */
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
    margin: auto;
    max-height: 600px;
    border-radius: 1.5rem;
    color: black !important;
    color: #fff !important;
    max-width: 500px;
    max-height: 90%;
}


#chatApp {
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgb(51 51 59);
    max-height: 100%;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #888 transparent; /* Firefox */
}

.chatApp::-webkit-scrollbar {
    width: 8px;
    z-index: 9999; /* Ensure scrollbar is above other elements */
}

.chatApp::-webkit-scrollbar-track {
    background: transparent;
}

.chatApp::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    z-index: 9999;
}

.chatApp::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Hide scrollbar until hover (optional for auto-hide effect) */
.chatApp {
    scrollbar-gutter: stable; /* Keeps space even when scrollbar hidden (Chrome/Edge) */
}

.chatApp::-webkit-scrollbar {
    opacity: 0;
}

.chatApp:hover::-webkit-scrollbar {
    opacity: 1;
}

.section-title {
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
    color: #dcdcdc;
}

.file-card {
    background-color: #f5faff;
    color: #000;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 12px;
}

.file-card.received {
    background-color: #ffffff;
}

.file-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.file-meta {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 4px;
}

.status {
    font-size: 0.9rem;
    font-weight: bold;
    color: green;
}

.downloaded {
    color: #0066cc;
}

.file-item {
    background: var(--color-background-dark-primary);
    color: #000;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 8px;
    margin: 8px 0;
    position: relative;
    font-size: 14px;
}
.file-upload-label path:hover {
    background: var(--color-background-dark-secondary);
    color: #0d6efd;
}

#chatApp {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    padding: 10px;
    margin: 0;
    border-radius: 1.5rem;
}

.chat-body {
    display: flex;
    flex-direction: column;
    padding: 88px 20px 20px 20px!important;
    height: 100%;
    overflow-y: auto;
    background-color: rgb(51 51 59) !important;
    border-radius: 1.5rem;
}

.files-area {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.9rem;
    color: #555;
}

.file-item {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px;
    min-width: 100px; /* Define the fixed width */
    max-width: 100px;
    white-space: nowrap; /* Prevent the text from wrapping to the next line */
    overflow: hidden; /* Hide any overflowing text */
    background-color: unset;
    position: relative;
    height: 135px;
    transition: 1s;
}
.file-item:hover .file-item-delete-overlay {
    display: block;
    top: 0;
}
.file-item:hover .delete-btn {
    display: block;
}
.file-item-text {
    display: inline-block;
    min-width: 95px; /* Adjust this value as needed */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px; /* Add some space between the text and the delete button */
    font-weight: 700;
}

.file-item-delete-overlay {
    position: absolute;
    top: -100%;
    right: 0;
    background-color: rgba(255, 0, 0);
    padding: 5px;
    border-radius: 0 5px 0 5px;
    z-index: 1;
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    align-content: center;
    flex-wrap: wrap;
}
.file-item .delete-btn {
    display: none;
    color: #dc3545;
    width: fit-content;
    margin: auto;
    background-color: white;
    box-shadow: #0000001a 0px 0px 5px;
    border-radius: 50%;
}
.file-item.without-overlay {
    padding-left: 0;
    padding-right: 0;
}

/* Shake (tilt) animation on longitudinal axis */
@keyframes shake-tilt {
    0% {
        transform: rotateZ(0deg);
    }
    10% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(15deg);
    }
    30% {
        transform: rotateZ(-15deg);
    }
    40% {
        transform: rotateZ(-15deg);
    }
    50% {
        transform: rotateZ(15deg);
    }
    50% {
        transform: rotateZ(-15deg);
    }
    60% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(0deg);
    }
}

.delete-btn:hover {
    animation: shake-tilt 0.7s ease-in-out infinite;
    color: #fff !important;
}

.files-area .more-files {
    color: #007bff;
    cursor: pointer;
}

.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    margin: 8px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
    display: inline-block;
}

.sent {
    background-color: #dcf8c6;
    color: #000;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.sent::after {
    content: "";
    position: absolute;
    bottom: 8px;
    right: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: #dcf8c6;
    border-right: 0;
    margin-top: -4px;
}

/* .received {
    background-color: #f1f0f0;
    color: #000;
    margin-right: auto;
    /* border: 1px solid #ddd;
        border-bottom-left-radius: 4px; 
}*/

.received::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: -6px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: #f1f0f0;
    border-left: 0;
    margin-top: -4px;
}

.swal2-icon-content {
    color: rebeccapurple !important;
}
.message-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

.see-more {
    color: #007bff;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}
.see-more:hover {
    color: #0056b3;
    text-decoration: none;
}

#receiver_code{
    color: black;
}