/* General body and container styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    margin: 0;
    padding: 0;
    color: #e0e0e0;
}

header {
    background-color: #333333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.sidebar {
    width: 250px;
    background-color: #333;
    padding: 20px;
    color: white;
    border-radius: 10px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.sidebar a:hover {
    color: #007bff;
}

.content {
    margin-left: 270px;
    padding: 20px;
}

.friend-requests, .direct-messages {
    margin-top: 20px;
}

.friend-request-item, .dm-item {
    background-color: #444;
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input[type="text"], textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
}

#send-btn {
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    width: 100%;
    color: white;
    font-size: 16px;
}

#send-btn:hover {
    background-color: #0056b3;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

#vanta-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

header {
    text-align: center;
    padding: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    margin-bottom: 20px;
}

.chat-container {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    margin-top: 20px;
    max-width: 900px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message {
    padding: 8px;
    margin-bottom: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    color: black; /* Ensuring text is black */
}

.message strong {
    color: #007bff;
}

.input-container input,
.input-container textarea {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 5px;
}

#send-btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.navigation-buttons {
    margin-top: 20px;
    text-align: center;
}

.navigation-buttons a {
    margin: 0 10px;
    font-size: 16px;
    text-decoration: none;
}

.navigation-buttons a:hover {
    color: #007bff;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    height: 100%;
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-right: 20px;
    color: white;
}

.sidebar a {
    color: white;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 18px;
}

.sidebar a:hover {
    color: #007bff;
}

.sidebar .friend-requests,
.sidebar .view-dms {
    margin-bottom: 30px;
}

.sidebar .friend-requests h3,
.sidebar .view-dms h3 {
    color: #007bff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.sidebar .friend-request-item,
.sidebar .dm-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .friend-request-item button,
.sidebar .dm-item button {
    font-size: 14px;
}

.send-friend-request {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    backdrop-filter: blur(6px);
    color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.send-friend-request h3 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 15px;
}

.send-friend-request form {
    display: flex;
    flex-direction: column;
}

.send-friend-request input {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.send-friend-request button {
    padding: 10px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-friend-request button:hover {
    background-color: #0056b3;
}

.content {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin-top: 20px;
    padding: 20px;
}

.main-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
}

.sidebar, .chat-container {
    margin: 0 15px;
}

/* Prevent sidebar and chat container from overlapping */
.sidebar {
    flex-shrink: 0;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}