body {
    background-color: #2d3748;
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
}
  
.notification-popup {
    display: none;
    position: absolute;
    top: 50px;
    right: 20px;
    width: 320px;
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.popup-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 8px;
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 25px;
}

.notification-count {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.message-time {
    font-size: 12px;
    color: gray;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background-color: #2563eb;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

aside {
    background-color: #fff;
    width: 25%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.chat-btn {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: none;
}

.search-box {
    width: 100%;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: none;
}

.chat-groups .group {
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-groups .group:hover {
    background-color: #e5e7eb;
}

.chat-groups .group.active {
    background-color: #dbeafe;
    border-left: 4px solid #2563eb;
}

.group-title {
    font-weight: bold;
}

.group-desc,
.group-status p {
    font-size: 0.8rem;
    color: #6b7280;
}

.chat-section {
    background-color: #f3f4f6;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.chat-header {
    background-color: #dbeafe;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-info img {
    border-radius: 9999px;
}

.chat-title {
    font-weight: bold;
}

.chat-id {
    font-size: 0.8rem;
    color: #6b7280;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: fadeIn 0.3s ease-in;
}

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    background-color: #dbeafe;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    max-width: 300px;
    position: relative;
    transition: all 0.3s ease;
}

.message.sent .message-bubble {
    background-color: #2563eb;
    color: #fff;
}

.time {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.chat-input {
    background-color: #dbeafe;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
}

.chat-input i {
    color: #2563eb;
    cursor: pointer;
}

.chat-content {
    display: none;
    height: 100%;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-content.active {
    display: flex;
    opacity: 1;
}

.chat-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 