/* Tool Icon Styles */
.tool-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tools-section {
    padding: 8px 0;
    border-bottom: none;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tool-btn {
    width: calc(100% - 16px);
    margin: 0 8px;
    padding: 8px 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.2s;
}

.tool-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.chat-history-section {
    flex: 1;
    overflow-y: auto;
}

/* Footer with Upload, Profile and Settings */
.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-btn {
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.2s;
}

.upload-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.upload-btn .icon {
    width: 20px;
    height: 20px;
}

.footer-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.sidebar-footer .profile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sidebar-footer .profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-footer .profile-btn .profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-hover), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-footer .profile-btn .profile-avatar svg {
    width: 16px;
    height: 16px;
    color: white;
}

.sidebar-footer .profile-btn .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-footer .icon-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.sidebar-footer .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-footer .icon-btn svg {
    width: 20px;
    height: 20px;
}