* {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            text-decoration: none;
            box-sizing: border-box;
        }

        body {
            margin: 0;
            overflow-x: hidden;
            background-color: #f5f7fb;
            height: 100vh;
        }

        .navbar {
            background-color: black;
            color: white;
            padding: 20px;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav-sec-1 {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            margin-left: 20px;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .nav-options ul {
            display: flex;
            flex-direction: row;
            gap: 20px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-options a {
            color: white;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 4px;
            transition: background-color 0.3s;
        }

        .nav-options a:hover {
            background-color: #333;
        }

        .mobile-menu {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .menu {
            display: none;
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            width: 70%;
            background-color: black;
            z-index: 200;
            padding: 80px 30px;
            transform: translateX(100%);
            transition: transform 0.3s ease;
        }

        .menu.active {
            transform: translateX(0);
        }

        .menu ul {
            list-style: none;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .menu a {
            color: white;
            font-size: 1.2rem;
            display: block;
            padding: 10px 0;
        }

        /* Messages layout */
        .messages-container {
            display: flex;
            height: calc(100vh - 80px);
        }

        /* Conversations sidebar */
        .conversations-sidebar {
            width: 350px;
            background-color: white;
            border-right: 1px solid #e0e0e0;
            overflow-y: auto;
            padding: 20px;
        }

        .conversations-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e0e0e0;
        }

        .conversations-title {
            font-size: 1.5rem;
            margin: 0;
        }

        .new-conversation-btn {
            background-color: #4361ee;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .conversation-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .conversation-item {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .conversation-item:hover {
            background-color: #f0f2f5;
        }

        .conversation-item.active {
            background-color: #e6eeff;
        }

        .conversation-partner {
            font-weight: 600;
            margin-bottom: 5px;
        }

        .conversation-preview {
            color: #65676b;
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .conversation-time {
            font-size: 0.8rem;
            color: #65676b;
            text-align: right;
        }

        /* Chat area */
        .chat-area {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .chat-header {
            padding: 15px 20px;
            border-bottom: 1px solid #e0e0e0;
            background-color: white;
            display: flex;
            align-items: center;
        }

        .chat-partner-name {
            font-weight: 600;
            font-size: 1.1rem;
        }

        .messages-area {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background-color: #f0f2f5;
        }

        .message {
            max-width: 70%;
            margin-bottom: 15px;
            display: flex;
            flex-direction: column;
        }

        .message.sent {
            align-self: flex-end;
            align-items: flex-end;
        }

        .message.received {
            align-self: flex-start;
            align-items: flex-start;
        }

        .message-bubble {
            padding: 12px 16px;
            border-radius: 18px;
            margin-bottom: 5px;
        }

        .message.sent .message-bubble {
            background-color: #4361ee;
            color: white;
            border-top-right-radius: 4px;
        }

        .message.received .message-bubble {
            background-color: white;
            color: #333;
            border-top-left-radius: 4px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .message-time {
            font-size: 0.7rem;
            color: #65676b;
        }

        .message-input-area {
            padding: 15px 20px;
            background-color: white;
            border-top: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
        }

        .message-input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            outline: none;
            font-size: 1rem;
        }

        .send-message-btn {
            background-color: #4361ee;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            margin-left: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* New conversation modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: white;
            border-radius: 8px;
            width: 400px;
            max-width: 90%;
            padding: 20px;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .modal-title {
            margin: 0;
            font-size: 1.2rem;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .user-search {
            width: 100%;
            padding: 10px;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            margin-bottom: 15px;
        }

        .user-list {
            list-style: none;
            padding: 0;
            margin: 0;
            max-height: 300px;
            overflow-y: auto;
        }

        .user-item {
            padding: 10px;
            border-radius: 4px;
            cursor: pointer;
            margin-bottom: 5px;
        }

        .user-item:hover {
            background-color: #f0f2f5;
        }

        /* No conversation selected */
        .no-conversation {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            color: #65676b;
            font-size: 1.2rem;
        }

        .loading, .no-messages, .error {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading-users, .no-users {
    text-align: center;
    padding: 15px;
    color: #666;
}

.conversation-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #e0e0e0;
}

.conversation-item:hover {
    background-color: #f0f2f5;
}

.conversation-item.active {
    background-color: #e6eeff;
    border-color: #4361ee;
}

.no-conversations {
    text-align: center;
    padding: 20px;
    color: #666;
}

.user-item {
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background-color 0.2s;
    border: 1px solid #e0e0e0;
}

.user-item:hover {
    background-color: #f0f2f5;
    border-color: #4361ee;
}

        /* Responsive styles */
        @media (max-width: 768px) {
            .nav-options {
                display: none;
            }

            .mobile-menu {
                display: block;
            }

            .messages-container {
                flex-direction: column;
            }

            .conversations-sidebar {
                width: 100%;
                height: 40%;
            }

            .chat-area {
                height: 60%;
            }
        }
                /* Footer Styles */
        .footer {
            background-color: black;
            color: white;
            padding: 40px 20px 20px;
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 40px;
        }
        
        .footer-about {
            padding-right: 20px;
        }
        
        .footer-about h3 {
            color: #ffffff;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }
        
        .footer-about p {
            line-height: 1.6;
            color: #ccc;
        }
        
        .footer-links h3 {
            color: #ffffff;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: #4cc9f0;
        }
        
        .footer-bottom {
            max-width: 1200px;
            margin: 30px auto 0;
            padding-top: 20px;
            border-top: 1px solid #333;
            text-align: center;
            color: #999;
        }
        
        .developer {
            margin-top: 10px;
            font-size: 0.9rem;
        }
        
        /* Responsive Styles */
        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .footer-about {
                padding-right: 0;
                text-align: center;
            }
            
            .footer-links {
                text-align: center;
            }
        }