:root {
    --primary-color: #28a745;
    --button-color: #ffc107;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: black;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.chat-container {
    max-width: 1000px;
    width: 90%;
    margin: 80px auto 20px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    margin-bottom: 20px;
    text-align: center;
}

.chat-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin: 0;
}

.chat-messages {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 250px);
}

.message {
    display: flex;
    margin-bottom: 15px;
    max-width: 60%;
    align-self: flex-start;
}

.message-own {
    align-self: flex-end;
}

.message-content {
    padding: 12px 18px;
    border-radius: 18px 18px 18px 0;
    background: #f0f0f0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message-own .message-content {
    background: var(--primary-color);
    color: white;
    border-radius: 18px 18px 0 18px;
}

.message strong {
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
}

.message p {
    margin: 0;
}

.message small {
    font-size: 0.75em;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

.chat-input {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

#message-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    padding: 12px 20px;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#message-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

#send-button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

#send-button:hover {
    background: #218838;
    transform: scale(1.05);
}

#send-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        padding: 10px;
        margin-top: 70px;
    }
    
    .message {
        max-width: 75%;
    }
}
