.sidebar {
    width: 280px;
    background: linear-gradient(180deg, 
        rgba(15, 23, 42, 0.8) 0%,
        rgba(15, 23, 42, 0.7) 100%
    );
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(96, 165, 250, 0.03),
        0 0 30px rgba(0, 0, 0, 0.3);
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(96, 165, 250, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}

.logo {
    padding: 10px;
    margin-bottom: 40px;
}

.logo-image {
    width: 100%;
    height: auto;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;  /* Increased from 2px */
    padding-top: 20px;
    flex: 1;
    margin-bottom: 20px; /* Added spacing before info sections */
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 0 20px rgba(96, 165, 250, 0.03),
        0 0 15px rgba(0, 0, 0, 0.2);
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 
        0 0 20px rgba(96, 165, 250, 0.2),
        inset 0 0 20px rgba(96, 165, 250, 0.05);
    transform: translateY(-1px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #666;
    border-radius: 8px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 0 15px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
}

.user-status {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online { 
    background: #4ade80; 
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}
.status-typing { 
    background: #60a5fa; 
    box-shadow: 0 0 10px #60a5fa;
    animation: pulse 2s infinite;
}
.status-offline { background: #9ca3af; }

.topic-frame {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(74, 222, 128, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}

.topic-frame:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
}

.topic-icon {
    width: 20px;
    height: 20px;
}

.topic-content {
    flex: 1;
}

.topic-label {
    font-size: 12px;
    color: #4ade80;
    margin-bottom: 2px;
}

.topic-text {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.ai-notice {
    text-align: center;
    color: #666;
    font-size: 11px; /* Made slightly smaller */
    margin: 0 auto;
    max-width: 240px;
    padding: 0 12px;
}

.ai-notice .gemini-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #60a5fa;
    margin-top: 4px;
    font-size: 11px;
}

.ai-notice .gemini-badge svg {
    width: 12px;
    height: 12px;
}

.credits {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 24px;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.8) 100%
    );
    backdrop-filter: blur(12px);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #b0b0b0;
    text-align: center;
    width: 240px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.2),
        inset 0 0 50px rgba(96, 165, 250, 0.03);
}

.credits:hover {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.85) 100%
    );
    border-color: rgba(96, 165, 250, 0.2);
    transform: translateY(-1px);
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.3),
        inset 0 0 60px rgba(96, 165, 250, 0.05);
}

.credits .msoftware-logo {
    width: 130px;
    height: auto;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.credits:hover .msoftware-logo {
    transform: scale(1.05);
}

.credits .powered-by {
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.credits .links {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-top: 8px;
}

.credits a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s ease;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid transparent;
}

.credits a:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.2);
    transform: translateY(-1px);
    color: #93c5fd;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px currentColor;
    }
    50% {
        box-shadow: 0 0 15px currentColor;
    }
    100% {
        box-shadow: 0 0 5px currentColor;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 0 20px;
        flex-direction: row;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        height: 60px;
        min-height: 60px;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .logo {
        padding: 0;
        margin: 0;
        width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-image {
        width: auto;
        height: 32px;
    }

    .user-list,
    .topic-frame,
    .ai-notice,
    .credits {
        display: none;
    }

    .sidebar::after {
        display: none;
    }
}