/* Base styles */
body {
    background-color: #1a1a1d;
    color: #c3c3c3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    overflow: hidden;
}

/* Auth container - full screen overlay */
#auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(5px);
}

#auth-container.d-none {
    display: none;
}

.auth-form-container {
    background-color: #1f1f23;
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    opacity: 0;
    animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes fadeInScale {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-form-container h2 {
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.form-label {
    color: #8e8e8e;
    font-size: 0.9rem;
}

.form-control {
    background-color: #2a2a2e;
    border: 1px solid #444;
    color: #c3c3c3;
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background-color: #2a2a2e;
    border-color: #6f2232;
    box-shadow: 0 0 0 3px rgba(111, 34, 50, 0.3);
    color: #c3c3c3;
}

.btn-primary {
    background-color: #6f2232;
    border-color: #6f2232;
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #950740;
    border-color: #950740;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(149, 7, 64, 0.3);
}

.auth-form-container a {
    color: #950740;
    text-decoration: none;
    font-weight: 500;
}

.auth-form-container a:hover {
    text-decoration: underline;
}

/* Chat layout */
.chat-container {
    display: flex;
    height: 100vh;
    opacity: 0;
    animation: fadeIn 0.5s 0.2s ease-out forwards;
}

.chat-container.d-none {
    display: none;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.sidebar {
    background-color: #1f1f23;
    padding: 1rem;
    width: 280px;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.main-chat {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #1f1f23;
    padding: 1rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 1.25rem;
    max-width: 80%;
    display: flex;
}

.message .author {
    font-weight: bold;
    color: #950740;
    margin-bottom: 0.25rem;
}

.message .timestamp {
    font-size: 0.75rem;
    color: #8e8e8e;
    margin-left: 0.5rem;
}

.message .content {
  line-height: 1.5;
}

.chat-input {
    padding: 1.5rem;
    background-color: transparent;
    border-top: 1px solid #333;
    display: flex;
    gap: 1rem;
}

.chat-input .form-control {
    flex-grow: 1;
}

#send-button {
    background-color: #6f2232;
    border: none;
    color: white;
    border-radius: 4px;
    transition: all 0.2s ease;
}
#send-button:hover {
    background-color: #950740;
}

/* General UI */
.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
}

.list-group-item.active, .list-group-item:hover, .list-group-item:focus {
    background-color: #2a2a2e !important;
    border-color: transparent !important;
    color: #fff !important;
}

.list-group-item.active {
    background-color: #6f2232 !important;
}

.modal-content.bg-dark {
    background-color: #1f1f23 !important;
    color: #c3c3c3;
    border: 1px solid #333;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#logout-btn {
    background-color: #4f545c;
    border: none;
}
#logout-btn:hover {
    background-color: #da373c;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1f1f23;
}
::-webkit-scrollbar-thumb {
    background: #4f545c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6f2232;
}
