
:root {
    --primary-color: #4a6fff;
    --secondary-color: #f0f4ff;
    --accent-color: #ff6b6b;
    --dark-color: #333344;
    --light-color: #ffffff;
    --gray-color: #f5f7fb;
    --border-color: #e2e8f0;
    --text-color: #2d3748;
    --text-light: #718096;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Multi-usable components */
.icon {
    height: 1rem;
}

.contact {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 500;
}

.contact-status {
    font-size: 0.8rem;
    color: var(--text-light);
}

.status {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #48bb78;
    border-radius: 50%;
    margin-right: 5px;
}

.offline {
    background-color: var(--text-color);
}

.container {
    display: flex;
    height: 100vh;
    width: 60%;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
}

/* Left Sidebar Container */
.sidebar {
    width: 300px;
    background-color: var(--light-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

/* Header section - Logo/Settings */
.header {
    padding: 18px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    .logo-image {
        height: 25px;
        background-color: var(--light-color);
        padding: 5px;
        border-radius: 20px;
    }
}

/* Search section */
.search-container {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    
    .search-box {
        display: flex;
        align-items: center;
        background-color: var(--gray-color);
        border-radius: 20px;
        padding: 8px 15px;
    }
    
    .search-box input {
        background: transparent;
        border: none;
        outline: none;
        width: 100%;
        margin-left: 10px;
        color: var(--text-color);
    }
}

/* Tab section - Groups/Private */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    
    .tab {
        flex: 1;
        text-align: center;
        padding: 15px;
        cursor: pointer;
        transition: background-color 0.2s;
        font-weight: 500;
    }
    
    .tab.active {
        border-bottom: 2px solid var(--primary-color);
        color: var(--primary-color);
    }
}

/* Contacts list secion - Groups/Private */
.contacts {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    
    .contact:hover {
        background-color: var(--secondary-color);
    }
    
    .contact.active {
        background-color: var(--secondary-color);
    }
}

/* Start Meeting - button section */
.meeting-section {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    
    .meet-btn {
        background-color: var(--accent-color);
        color: white;
        border: none;
        padding: 12px;
        border-radius: 8px;
        width: 100%;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background-color 0.2s;
    }
    
    .meet-btn:hover {
        background-color: #ff5252;
    }
}

/* Right side - Chat Area Container */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Chat Area - Header Section */
.chat-header {
    padding: 12.5px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    .contact {
        padding: 0px;
        border: none;
    }
    
    .chat-action-btn {
        background: none;
        border: none;
        color: var(--text-light);
        cursor: pointer;
        font-size: 1.2rem;
    }
    
    a {
        color: var(--text-light);
    }
    
    .chat-actions {
        display: flex;
        gap: 15px; 
    }
    
    .chat-action-btn:hover {
        color: var(--primary-color);
    }
}

/* Message area section */
.messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: var(--gray-color);
    
    .message {
        display: flex;
        margin-bottom: 15px;
    }
    
    .message.sent {
        justify-content: flex-end;
    }
    
    .message-content {
        max-width: 70%;
        padding: 10px 15px;
        border-radius: 18px;
        position: relative;
    }
    
    .received .message-content {
        background-color: var(--light-color);
        border-top-left-radius: 4px;
    }
    
    .sent .message-content {
        background-color: var(--primary-color);
        color: white;
        border-top-right-radius: 4px;
    }
    
    .message-time {
        font-size: 0.7rem;
        color: var(--text-light);
        margin-top: 5px;
        text-align: right;
    }
    
    .sent .message-time {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Message imput Container - Send/Attach */
.message-input-container {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    
    .message-input {
        flex: 1;
        padding: 12px 15px;
        border: 1px solid var(--border-color);
        border-radius: 24px;
        outline: none;
        font-size: 1rem;
    }
    
    .send-btn {
        background-color: var(--primary-color);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .attachment-btn {
        background: none;
        border: none;
        color: var(--text-light);
        cursor: pointer;
        font-size: 1.2rem;
    }
}

/* Meeting Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
    
    .meeting-modal {
        background-color: white;
        border-radius: 12px;
        width: 90%;
        max-width: 500px;
        padding: 25px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    
    .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .close-modal {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-light);
    }
    
    .modal-option {
        padding: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 15px;
        cursor: pointer;
        transition: background-color 0.2s;
    }
    
    .modal-option:hover {
        background-color: var(--secondary-color);
    }
    
    .option-title {
        font-weight: 500;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .option-desc {
        font-size: 0.9rem;
        color: var(--text-light);
    }
}

/* Responsive Design */
/* @media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
        margin: 0px;
    }
    
    .sidebar {
        width: 100%;
        height: 40%;
    }
    
    .chat-area {
        height: 60%;
    }
} */