/* Assistant avatar styles */
.assistant-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.assistant-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
:root {
    --sidebar-width: 25vw;  /* Change from 300px to 25% viewport width */
    --header-height: 60px;
    --text-color: #212529;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --hover-bg: #e9ecef;
    --active-bg: #e2e6ea;
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    height: var(--header-height);
    padding: 0.5rem 1rem;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.navbar-brand {
    color: var(--text-color) !important;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.btn-outline-primary {
    border-color: #dee2e6;
    color: var(--text-color);
}

.btn-outline-primary:hover {
    background-color: var(--hover-bg);
    border-color: #ced4da;
    color: var(--text-color);
}

.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: var(--text-color);
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
}

/* Auth styles */
.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-background {
    flex: 1;  /* Takes up half the space */
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url('/static/img/ki_talk.png');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.auth-content h1 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.auth-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
}

.auth-form-container {
    flex: 1;  /* Takes up half the space */
    display: flex;
    align-items: center;
    justify-content: center;  /* Centers the form horizontally */
    padding: 2rem;
}

.auth-form {
    width: 100%;
    max-width: 400px;  /* Prevents the form from getting too wide */
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-form .subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
}

.auth-form .nav-pills {
    margin-bottom: 2rem;
}

.auth-form .nav-link {
    color: #000;
}

.auth-form .nav-link.active {
    background-color: #000;
    color: white;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.auth-footer p {
    margin-bottom: 0.5rem;
}

.auth-footer .links a {
    color: #000;
    text-decoration: none;
}

/* Update mobile styles */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 80vw;  /* Use larger width on mobile for better readability */
    }

    .auth-background {
        display: none;
    }
    
    .auth-form-container {
        width: 100%;
    }
    
    .chat-sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        z-index: 1000;
        transform: translateX(-100%);
    }
    
    .chat-team {
        position: fixed;
        right: 0;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        z-index: 1000;
        transform: translateX(100%);
    }
    
    .chat-container.show-left .chat-sidebar {
        transform: translateX(0);
    }
    
    .chat-container.show-right .chat-team {
        transform: translateX(0);
    }
    
    .panel-indicator {
        display: block;
    }
    
    .chat-main {
        margin: 0;
    }
    
    .message.user {
        margin-left: 1rem;
    }
    
    .message.assistant {
        margin-right: 1rem;
    }
}

/* Existing styles */
.panel-indicator {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    height: 100px;
    width: 4px;
    background: var(--border-color);
    z-index: 1010;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.panel-indicator.left {
    left: 0;
}

.panel-indicator.right {
    right: 0;
}

.message-content h1 {
    font-size: 1.8em;
    margin: 0.5em 0;
    font-weight: 600;
}

.message-content h2 {
    font-size: 1.5em;
    margin: 0.4em 0;
    font-weight: 600;
}

.message-content h3 {
    font-size: 1.3em;
    margin: 0.3em 0;
    font-weight: 600;
}

.message-content h4 {
    font-size: 1.2em;
    margin: 0.2em 0;
    font-weight: 600;
}

.message-content h5 {
    font-size: 1.1em;
    margin: 0.1em 0;
    font-weight: 600;
}

.message-content h6 {
    font-size: 1em;
    margin: 0.1em 0;
    font-weight: 600;
}

.chat-container {
    display: flex;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
}

.chat-sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
    transition: transform 0.3s ease;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--bg-color);
    position: relative;
    min-width: 0;
}

.chat-team {
    width: var(--sidebar-width);
    border-left: 1px solid var(--border-color);
    padding: 1rem;
    overflow-y: auto;
    background-color: var(--bg-light);
    transition: transform 0.3s ease;
}

.human-team-members {
    margin-bottom: 2rem;
}

.chat-team h3 {
    font-size: 1.2em;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--bg-color);
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.message.user {
    background-color: #e3f2fd;
    margin-left: 2rem;
    color: var(--text-color);
}

.message.assistant {
    background-color: var(--bg-light);
    margin-right: 2rem;
    color: var(--text-color);
}

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

.message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.team-members {
    margin-bottom: 2rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.online-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.online-status.online {
    background-color: #4CAF50;  /* Green color for online users */
}

.online-status.offline {
    background-color: #9e9e9e;  /* Grey color for offline users */
}

.member-info {
    display: flex;
    align-items: center;
}

.member-details .badge {
    background-color: #4CAF50;  /* Change badge color to green */
}

.member-role {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.member-name {
    font-weight: 500;
}

.remove-member {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.chat-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-title {
    font-weight: 500;
    word-break: break-word;
    flex-grow: 1;
}

.chat-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}

.chat-item .badge i {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.chat-actions button {
    padding: 0.25rem 0.5rem;
    color: var(--text-color);
}

.chat-item:hover {
    background-color: var(--hover-bg);
}

.chat-item.active {
    background-color: var(--active-bg);
}

.chat-actions button:hover {
    color: #000;
}

.thinking-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #0dcaf0;
}

.thinking-indicator img {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

#new-chat-btn {
    margin-top: auto;
    padding: 0.75rem;
}

.assistant-selectors {
    margin-top: 2rem;
}

.assistant-selectors .mb-3 {
    margin-bottom: 1.5rem !important;
}

.form-select {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-control {
    background-color: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-control:focus {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 80vw;  /* Use larger width on mobile for better readability */
    }

    .auth-background {
        display: none;
    }
    
    .auth-form-container {
        width: 100%;
    }
    
    .chat-sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        z-index: 1000;
        transform: translateX(-100%);
    }
    
    .chat-team {
        position: fixed;
        right: 0;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        z-index: 1000;
        transform: translateX(100%);
    }
    
    .chat-container.show-left .chat-sidebar {
        transform: translateX(0);
    }
    
    .chat-container.show-right .chat-team {
        transform: translateX(0);
    }
    
    .panel-indicator {
        display: block;
    }
    
    .chat-main {
        margin: 0;
    }
    
    .message.user {
        margin-left: 1rem;
    }
    
    .message.assistant {
        margin-right: 1rem;
    }
}