/* ==========================================
   KUSOYA AI - SIDEBAR STYLES
   ========================================== */

.ai-sidebar, #chatSidebar, .sidebar-chat {
    width: 260px;
    background: linear-gradient(180deg, #004589 0%, #003366 100%);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.new-chat-button {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-chat-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.conversations-list, .conversation-history {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.conversations-list::-webkit-scrollbar, .conversation-history::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-thumb, .conversation-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.conversation-item {
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.conversation-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left: 3px solid #f95c38;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f95c38 0%, #ff8a6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    flex: 1;
}

.user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.sidebar-toggle, #sidebarToggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #374151;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex !important;
    width: 40px;
    height: 40px;
    z-index: 2002;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover { 
    background: #f3f4f6; 
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* END OF SIDEBAR STYLES */